/* ==========================================================
   Register 2025
   University of Diyala Dormitory Registration
========================================================== */

.registration-page {
    direction: rtl;
    background: #f5f7f9;
    padding: 35px 15px 55px;
    color: #243746;
    font-family: Tahoma, Arial, sans-serif;
}

.registration-page * {
    box-sizing: border-box;
}

.registration-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.registration-header {
    text-align: center;
    margin-bottom: 25px;
}

.registration-badge {
    display: inline-block;
    padding: 7px 16px;
    margin-bottom: 10px;
    background: #e8f3f9;
    color: #0b6396;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
}

.registration-header h1 {
    margin: 0 0 10px;
    color: #173d59;
    font-size: 30px;
    line-height: 1.5;
}

.registration-header p {
    max-width: 760px;
    margin: 0 auto;
    color: #687985;
    line-height: 1.9;
    font-size: 15px;
}

.registration-alert {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 9px;
    border: 1px solid transparent;
    line-height: 1.9;
    font-size: 14px;
}

.alert-success {
    background: #eef9f1;
    border-color: #cbe7d3;
    color: #27693b;
}

.alert-warning {
    background: #fff8eb;
    border-color: #eed9ae;
    color: #8b5c10;
}

.alert-error {
    background: #fff0f0;
    border-color: #efc8c8;
    color: #9a2929;
}

.registration-form {
    width: 100%;
}

.form-section {
    margin-bottom: 20px;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(30, 60, 80, 0.05);
}

.section-title {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 17px;
    border-bottom: 1px solid #edf1f4;
}

.section-number {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8f3f9;
    color: #0b6396;
    font-weight: bold;
}

.section-title h2 {
    margin: 0 0 5px;
    color: #173d59;
    font-size: 20px;
}

.section-title p {
    margin: 0;
    color: #788792;
    font-size: 13px;
    line-height: 1.7;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    color: #334c5d;
    font-size: 14px;
    font-weight: bold;
}

.form-group label span {
    color: #c33;
}

.form-group input,
.form-group select {
    width: 100%;
    min-height: 47px;
    padding: 10px 12px;
    border: 1px solid #ccd7df;
    border-radius: 7px;
    background: #fff;
    color: #263945;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #3284b1;
    box-shadow: 0 0 0 3px rgba(50, 132, 177, 0.10);
}

.form-group input[readonly] {
    background: #f5f7f9;
    color: #6d7b85;
}

.form-group small {
    color: #7b8a95;
    font-size: 12px;
    line-height: 1.7;
}

.registration-notice {
    margin: 22px 0;
    padding: 22px 24px;
    background: #f0f7fb;
    border: 1px solid #d6e7f0;
    border-radius: 10px;
}

.registration-notice h3 {
    margin: 0 0 12px;
    color: #174d6e;
    font-size: 17px;
}

.registration-notice ul {
    margin: 0;
    padding-right: 20px;
    color: #536774;
    line-height: 2;
    font-size: 14px;
}

.form-submit-area {
    text-align: center;
    padding-top: 5px;
}

.submit-button {
    min-width: 260px;
    min-height: 52px;
    padding: 12px 26px;
    border: 0;
    border-radius: 8px;
    background: #0d669b;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 17px;
    font-weight: bold;
    transition: background .2s ease, transform .2s ease;
}

.submit-button:hover {
    background: #0a567f;
    transform: translateY(-1px);
}

.submit-button:disabled {
    cursor: not-allowed;
    opacity: .7;
    transform: none;
}

.privacy-note {
    margin: 12px 0 0;
    color: #7c8a94;
    font-size: 12px;
}

.hp-field {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 720px) {

    .registration-page {
        padding: 22px 10px 40px;
    }

    .registration-header h1 {
        font-size: 23px;
    }

    .form-section {
        padding: 18px 15px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group-full {
        grid-column: auto;
    }

    .submit-button {
        width: 100%;
        min-width: 0;
    }
}
