/* Contract Section Styles */
.contract {
    width: 90%;
    margin: 36px auto 0 auto;
    background: linear-gradient(120deg, #f7faff 70%, #fedd03 100%);
    border-radius: 22px;
    box-shadow: 0 8px 40px rgba(10,61,145,0.10);
    padding: 40px 40px 28px 40px;
    font-family: 'SolaimanLipi', Arial, sans-serif;
    position: relative;
    overflow: hidden;
}

.contract::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, #0a3d91 18%, transparent 70%);
    opacity: 0.08;
    z-index: 0;
}

.contract h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0a3d91;
    margin-bottom: 22px;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 8px #fedd03a0;
}

.contract-row {
    display: flex;
    gap: 38px;
    align-items: stretch;
    justify-content: center;
    margin-bottom: 38px;
    flex-wrap: wrap;
    z-index: 1;
    position: relative;
}

.contract-col {
    flex: 1 1 420px;
    background: linear-gradient(120deg, #fff 80%, #f7f7fa 100%);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(10,61,145,0.10);
    padding: 32px 28px;
    min-width: 320px;
    max-width: 520px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.3s, transform 0.3s;
    border: 1.5px solid #fedd03;
}

.contract-col:hover {
    box-shadow: 0 8px 32px rgba(10,61,145,0.16);
    transform: translateY(-2px) scale(1.03);
}

.school-image {
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(10,61,145,0.12);
    margin-bottom: 16px;
    background: #f9f9f9;
    border: 2px solid #fedd03;
    transition: box-shadow 0.2s;
}

.contract-col h3 {
    font-size: 1.25rem;
    color: #0a3d91;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.contract-col p {
    font-size: 1.05rem;
    color: #222;
    margin-bottom: 9px;
    line-height: 1.7;
    text-align: left;
    width: 100%;
}

.contract-col strong {
    color: #0a3d91;
    font-weight: 600;
}

.contract-form {
    background: linear-gradient(120deg, #fff 80%, #f7f7fa 100%);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(10,61,145,0.10);
    padding: 32px 22px 22px 22px;
    max-width: 520px;
    margin: 0 auto;
    border: 1.5px solid #fedd03;
    position: relative;
    z-index: 1;
}

.contract-form h3 {
    font-size: 1.18rem;
    color: #0a3d91;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 1.05rem;
    color: #0a3d91;
    font-weight: 600;
    margin-bottom: 7px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.8px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.05rem;
    background: #fff;
    color: #222;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0a3d91;
    box-shadow: 0 2px 8px #fedd03a0;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #fedd03;
}

.submit-btn {
    background: linear-gradient(90deg, #0a3d91 70%, #fedd03 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 1.12rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(10,61,145,0.10);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    margin-top: 10px;
    letter-spacing: 1px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.submit-btn:hover {
    background: linear-gradient(90deg, #fedd03 70%, #0a3d91 100%);
    color: #0a3d91;
    box-shadow: 0 4px 16px #fedd03a0;
}

/* Contact Card Styles */
.contact-card {
    background: linear-gradient(120deg, #fff 80%, #f7f7fa 100%);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(10,61,145,0.13);
    padding: 28px 22px 18px 22px;
    min-width: 320px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    border: 1.5px solid #fedd03;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card-title {
    display: flex;
    align-items: center;
    font-size: 1.22rem;
    color: #0a3d91;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 1px;
    gap: 10px;
    justify-content: center;
}

.contact-card-icon {
    font-size: 1.6rem;
    color: #fedd03;
    margin-right: 8px;
}

.contact-card-info {
    width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

.contact-card-info p {
    display: flex;
    align-items: flex-start;
    font-size: 1.08rem;
    margin-bottom: 14px;
    color: #222;
    line-height: 1.7;
    gap: 8px;
    flex-wrap: wrap;
    word-break: break-word;
}

.contact-label {
    font-weight: 600;
    color: #0a3d91;
    margin-right: 4px;
    min-width: 70px;
    display: inline-block;
    flex-shrink: 0;
    word-break: keep-all;
}

.contact-value {
    word-break: break-word;
    overflow-wrap: break-word;
    flex: 1 1 0;
    min-width: 0;
}

.contact-link {
    color: #0a3d91;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    word-break: break-all;
}

.contact-link:hover {
    color: #fc033d;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 900px) {
    .contract {
        width: 98%;
        padding: 22px 4vw 18px 4vw;
    }
    .contract-row {
        gap: 18px;
    }
    .contract-col {
        min-width: 220px;
        max-width: 98vw;
        padding: 18px 8px;
    }
    .contract-form {
        padding: 18px 8px 12px 8px;
    }
    .contact-card {
        min-width: 180px;
        max-width: 98vw;
    }
}

@media (max-width: 700px) {
    .contract {
        width: 100%;
        padding: 8px 2vw 8px 2vw;
        border-radius: 0;
        box-shadow: none;
    }
    .contract-row {
        flex-direction: column;
        gap: 14px;
        margin-bottom: 18px;
    }
    .contract-col {
        max-width: 98vw;
        min-width: 0;
        padding: 12px 4px;
        border-radius: 10px;
    }
    .school-image {
        max-width: 98vw;
        border-radius: 10px;
    }
    .contract-form {
        max-width: 98vw;
        padding: 12px 4px 8px 4px;
        border-radius: 10px;
    }
    .contract h2 {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }
    .contract-form h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    .form-group label {
        font-size: 0.98rem;
    }
    .form-group input,
    .form-group textarea {
        font-size: 0.98rem;
        padding: 8px 8px;
    }
    .submit-btn {
        font-size: 1rem;
        padding: 8px 18px;
    }
    .contact-card {
        max-width: 98vw;
        min-width: 0;
        padding: 12px 4px 8px 4px;
        border-radius: 10px;
    }
    .contact-card-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    .contact-card-info p {
        font-size: 0.98rem;
        margin-bottom: 10px;
        justify-content: center;
    }
}
