/* ================================
   ASTU MUSLIM STUDENTS JEMEA
   Main Styles
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(199, 166, 82, 0.10), transparent 30%),
        radial-gradient(circle at bottom right, rgba(42, 25, 83, 0.12), transparent 35%),
        #f7f4ef;
    color: #24183f;
    min-height: 100vh;
}


/* ================================
   PAGE
================================ */

.page-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* ================================
   HERO
================================ */

.hero {
    position: relative;
    text-align: center;
    padding: 55px 20px 70px;
    background:
        linear-gradient(
            135deg,
            #211844 0%,
            #30215d 50%,
            #1c1438 100%
        );
    color: white;
    overflow: hidden;
}


/* Decorative Islamic pattern */

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    border: 2px solid rgba(205, 170, 82, 0.18);
    transform: rotate(45deg);
    pointer-events: none;
}

.hero::before {
    left: -130px;
    top: -100px;
}

.hero::after {
    right: -130px;
    bottom: -120px;
}


.logo-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logo {
    width: 105px;
    height: 105px;
    object-fit: contain;
    background: white;
    padding: 8px;
    border-radius: 50%;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.25);
}


.arabic {
    position: relative;
    z-index: 2;
    font-size: 24px;
    line-height: 1.8;
    color: #e0c477;
    margin-bottom: 12px;
}


.hero h1 {
    position: relative;
    z-index: 2;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 700;
    letter-spacing: 0.2px;
    margin-bottom: 8px;
}


.subtitle {
    position: relative;
    z-index: 2;
    font-size: 1.05rem;
    color: #e5d39b;
    font-weight: 600;
    margin-bottom: 18px;
}


.intro {
    position: relative;
    z-index: 2;
    max-width: 620px;
    margin: auto;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-size: 0.98rem;
}


/* ================================
   REGISTRATION CARD
================================ */

.registration-card {
    width: min(920px, calc(100% - 30px));
    margin: -35px auto 50px;
    position: relative;
    z-index: 5;

    background: #ffffff;
    border-radius: 18px;

    padding: 38px;

    box-shadow:
        0 15px 50px rgba(35, 22, 65, 0.12);

    border: 1px solid rgba(36, 24, 63, 0.06);
}


/* ================================
   SECTION HEADER
================================ */

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    color: #24183f;
    font-size: 1.65rem;
    margin-bottom: 8px;
}

.section-header p {
    color: #77727f;
    font-size: 0.95rem;
}


/* ================================
   FORM GRID
================================ */

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


/* ================================
   FORM GROUP
================================ */

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


.form-group label {
    color: #30264b;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}


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


/* ================================
   INPUTS
================================ */

.form-group input,
.form-group select {
    width: 100%;
    height: 48px;

    border: 1px solid #ddd8e4;
    border-radius: 10px;

    background: #fcfbfd;
    color: #292039;

    padding: 0 14px;

    font-family: inherit;
    font-size: 0.95rem;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.form-group input::placeholder {
    color: #aaa5b0;
}


.form-group select {
    cursor: pointer;
    appearance: auto;
}


.form-group input:hover,
.form-group select:hover {
    border-color: #b9abc9;
}


.form-group input:focus,
.form-group select:focus {
    border-color: #8a6ca8;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(74, 45, 112, 0.10);
}


/* ================================
   SUBMIT BUTTON
================================ */

.submit-btn {
    display: block;
    width: 100%;

    margin-top: 30px;

    height: 52px;

    border: none;
    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #2b1c50,
            #4a3175
        );

    color: white;

    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(43, 28, 80, 0.20);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}


.submit-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(43, 28, 80, 0.25);
}


.submit-btn:active {
    transform: translateY(0);
}


.submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}


/* ================================
   FORM NOTE
================================ */

.form-note {
    text-align: center;
    color: #8b8692;
    font-size: 0.82rem;
    margin-top: 14px;
}


/* ================================
   HONEYPOT
================================ */

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}


/* ================================
   SUCCESS MESSAGE
================================ */

.success-message {
    text-align: center;
    padding: 25px 10px 10px;
}


.success-icon {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: #eee9f4;
    color: #4a3175;

    font-size: 2rem;
    font-weight: 700;
}


.success-message h2 {
    color: #24183f;
    margin-bottom: 10px;
}


.success-message p {
    color: #716c78;
    line-height: 1.6;
}


/* ================================
   FOOTER
================================ */

footer {
    text-align: center;
    padding: 0 20px 35px;
    color: #8b8692;
    font-size: 0.85rem;
}


/* ================================
   MOBILE
================================ */

@media (max-width: 680px) {

    .hero {
        padding: 40px 18px 60px;
    }

    .logo {
        width: 90px;
        height: 90px;
    }

    .arabic {
        font-size: 20px;
    }

    .hero h1 {
        font-size: 1.65rem;
    }

    .intro {
        font-size: 0.9rem;
    }


    .registration-card {
        width: calc(100% - 20px);
        margin-top: -28px;
        padding: 25px 18px;
        border-radius: 15px;
    }


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


    .section-header h2 {
        font-size: 1.4rem;
    }


    .submit-btn {
        height: 50px;
    }
}


/* ================================
   VERY SMALL SCREENS
================================ */

@media (max-width: 380px) {

    .registration-card {
        padding: 22px 14px;
    }

    .hero h1 {
        font-size: 1.45rem;
    }

    .arabic {
        font-size: 18px;
    }
}