
/* =========================================
   JAMARAN ONLINE QURAN ACADEMY
   REGISTRATION PAGE
   Shared Header & Footer Design
========================================= */

/* 1. GLOBAL RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #126B3A;
    --primary-dark: #0b5132;
    --footer-bg: #003d25;
    --gold: #d4af37;
    --gold-dark: #c18b18;
    --cream: #f7f4ea;
    --light-green: #eef4ee;
    --text-dark: #26352c;
    --text-light: #59655e;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: Arial, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

/* =========================================
   2. HEADER — SAME AS ABOUT PAGE
========================================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid #c18b18;
    background: #126B3A;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 80px;
    padding: 8px 5%;
    background: #126B3A;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    flex-shrink: 0;
    border: 2px solid #d4af37;
    background: white;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-name h3 {
    color: white;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.brand-name span {
    display: block;
    color: #d4af37;
    font-size: 11px;
    margin-top: 3px;
    line-height: 1.2;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links > li > a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: #d4af37;
}

/* Dropdown */

.dropdown {
    position: relative;
}

.dropdown > a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown > a i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown:hover > a i,
.dropdown:focus-within > a i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #7ac98e;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    display: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: #222 !important;
    font-size: 14px;
    transition: background 0.3s ease, padding 0.3s ease;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
    color: #126B3A !important;
    padding-left: 22px;
}

/* =========================================
   3. REGISTRATION HERO
========================================= */

.register-hero {
    margin-top: 80px;
    min-height: 320px;
    padding: 65px 6%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: linear-gradient(
        135deg,
        #003d25,
        #126B3A
    );
    border-bottom: 4px solid var(--gold);
}

.register-hero-content {
    max-width: 800px;
    margin: auto;
}

.register-hero-content > span {
    display: inline-block;
    color: var(--gold);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.register-hero-content h1 {
    color: white;
    font-family: "Times New Roman", serif;
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 15px;
}

.register-hero-content p {
    color: #e6eee9;
    font-size: 17px;
    line-height: 1.8;
}

/* =========================================
   4. REGISTRATION SECTION
========================================= */

.register-section {
    padding: 80px 6%;
    background: var(--cream);
}

.register-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 55px;
    align-items: start;
}

/* =========================================
   5. LEFT INFORMATION
========================================= */

.register-info {
    padding: 15px 0;
}

.register-subtitle {
    display: inline-block;
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.register-info > h2 {
    color: var(--primary-dark);
    font-family: "Times New Roman", serif;
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 18px;
}

.register-info > p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 30px;
}

/* Benefits */

.benefit {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    margin-bottom: 25px;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    background: var(--primary);
    border-radius: 10px;
    font-size: 20px;
}

.benefit h3 {
    color: var(--primary-dark);
    font-size: 17px;
    margin-bottom: 5px;
}

.benefit p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

/* =========================================
   6. REGISTRATION FORM CARD
========================================= */

.register-form-box {
    width: 100%;
    padding: 35px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e4e9e4;
    border-top: 4px solid var(--gold);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.form-heading {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e9e5;
}

.form-heading h2 {
    color: var(--primary-dark);
    font-family: "Times New Roman", serif;
    font-size: 29px;
    margin-bottom: 5px;
}

.form-heading p {
    color: var(--text-light);
    font-size: 14px;
}

/* =========================================
   7. FORM GROUPS AND LABELS
========================================= */

.register-form-box form {
    width: 100%;
}

.form-group {
    min-width: 0;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}

.input-box {
    min-width: 0;
    min-height: 49px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border: 1px solid #d9e0d9;
    border-radius: 7px;
    background: #fbfcfb;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(18, 107, 58, 0.10);
}

.input-box > i {
    flex-shrink: 0;
    width: 17px;
    color: var(--primary);
    font-size: 15px;
    text-align: center;
}

.input-box input,
.input-box select {
    width: 100%;
    min-width: 0;
    height: 47px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-dark);
    font-size: 14px;
}

.input-box input::placeholder {
    color: #98a19a;
}

.input-box select {
    appearance: auto;
}

.input-box select:invalid {
    color: #777;
}

/* Two-column form row */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-row .form-group {
    min-width: 0;
}

/* =========================================
   8. PHONE / WHATSAPP INPUT
========================================= */

.phone-input {
    gap: 10px;
}

.phone-input > i {
    color: #168a50;
    font-size: 19px;
}

.country-code {
    flex-shrink: 0;
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: bold;
    padding-right: 10px;
    border-right: 1px solid #d9e0d9;
}

/* =========================================
   9. MESSAGE TEXTAREA
========================================= */

.form-group textarea {
    display: block;
    width: 100%;
    min-height: 110px;
    padding: 13px 14px;
    resize: vertical;
    border: 1px solid #d9e0d9;
    border-radius: 7px;
    outline: none;
    color: var(--text-dark);
    background: #fbfcfb;
    font-size: 14px;
    line-height: 1.6;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(18, 107, 58, 0.10);
}

.form-group textarea::placeholder {
    color: #98a19a;
}

/* =========================================
   10. TERMS AND CONDITIONS
========================================= */

.terms {
    margin: 5px 0 22px;
}

.terms label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.7;
    cursor: pointer;
}

.terms input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 4px;
    accent-color: var(--primary);
}

/* =========================================
   11. SUBMIT BUTTON
========================================= */

.submit-btn {
    width: 100%;
    min-height: 52px;
    padding: 13px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid var(--primary);
    border-radius: 7px;
    background: var(--primary);
    color: white;
    font-size: 15px;
    font-weight: bold;
    transition: background 0.3s ease, color 0.3s ease,
                transform 0.3s ease;
}

.submit-btn i {
    font-size: 15px;
}

.submit-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.submit-btn:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* =========================================
   12. FOOTER — SAME AS ABOUT PAGE
========================================= */

.footer {
    position: relative;
    background: #003d25;
    color: white;
    border-top: 3px solid #d4af37;
    overflow: hidden;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 35px 6% 25px;
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr 1.2fr;
    gap: 50px;
}

/* Footer academy logo */

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo img {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #d4af37;
}

.footer-logo h2 {
    color: white;
    font-size: 22px;
    line-height: 1.3;
    margin: 0;
}

.footer-logo span {
    color: #d4af37;
    font-size: 12px;
}

.academy-info > p {
    max-width: 270px;
    color: #d8e3dc;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Footer headings */

.footer-column h3 {
    color: #d4af37;
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: bold;
}

/* Footer links */

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 5px;
}

.footer-column ul li a {
    color: #e6eee9;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease, padding 0.3s ease;
}

.footer-column ul li a:hover {
    color: #d4af37;
    padding-left: 4px;
}

/* Footer contact information */

.contact-info p {
    color: #e6eee9;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 9px;
    overflow-wrap: anywhere;
}

.contact-info p i {
    width: 18px;
    margin-right: 5px;
    color: #d4af37;
}

/* Social links */

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-links a {
    width: 27px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4af37;
    border-radius: 50%;
    color: #d4af37;
    font-size: 13px;
    transition: background 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    background: #d4af37;
    color: #003d25;
}

/* Footer copyright */

.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.35);
    text-align: center;
    padding: 8px 15px;
}

.footer-bottom p {
    color: #d8e3dc;
    font-size: 11px;
    margin: 0;
}

/* =========================================
   13. TABLET RESPONSIVE
========================================= */

@media (max-width: 1100px) {
    .navbar {
        padding-left: 4%;
        padding-right: 4%;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links > li > a {
        font-size: 14px;
    }

    .register-container {
        gap: 35px;
    }

    .register-form-box {
        padding: 28px;
    }

    .footer-container {
        gap: 25px;
    }
}

/* =========================================
   14. SMALL TABLET
========================================= */

@media (max-width: 800px) {
    .navbar {
        padding: 8px 3%;
    }

    .brand-name h3 {
        font-size: 17px;
    }

    .brand-name span {
        font-size: 10px;
    }

    .logo {
        width: 52px;
        height: 52px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links > li > a {
        font-size: 13px;
    }

    .register-container {
        grid-template-columns: 1fr;
        gap: 35px;
        max-width: 650px;
    }

    .register-info {
        padding: 0;
    }

    .register-info > h2 {
        font-size: 32px;
    }

    .register-form-box {
        padding: 32px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }
}

/* =========================================
   15. MOBILE RESPONSIVE
========================================= */

@media (max-width: 600px) {
    .navbar {
        height: auto;
        min-height: 75px;
        padding: 7px 3%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .brand {
        gap: 8px;
    }

    .logo {
        width: 52px;
        height: 52px;
    }

    .brand-name h3 {
        font-size: 15px;
    }

    .brand-name span {
        font-size: 9px;
    }

    .nav-links {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 12px;
    }

    .nav-links > li > a {
        font-size: 12px;
    }

    .dropdown-menu {
        left: 50%;
        min-width: 190px;
        transform: translateX(-50%);
    }

    .register-hero {
        margin-top: 120px;
        min-height: 260px;
        padding: 45px 5%;
    }

    .register-hero-content > span {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .register-hero-content h1 {
        font-size: 36px;
    }

    .register-hero-content p {
        font-size: 15px;
    }

    .register-section {
        padding: 55px 5%;
    }

    .register-info > h2 {
        font-size: 29px;
    }

    .register-info > p {
        font-size: 14px;
    }

    .benefit {
        gap: 13px;
        margin-bottom: 22px;
    }

    .benefit-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .register-form-box {
        padding: 25px 20px;
    }

    .form-heading h2 {
        font-size: 26px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .academy-info > p {
        margin-left: auto;
        margin-right: auto;
    }

    .social-links {
        justify-content: center;
    }

    .contact-info p {
        text-align: left;
    }
}

/* =========================================
   16. EXTRA SMALL MOBILE
========================================= */

@media (max-width: 400px) {
    .register-hero {
        margin-top: 130px;
        padding: 40px 5%;
    }

    .register-hero-content h1 {
        font-size: 31px;
    }

    .register-info > h2 {
        font-size: 26px;
    }

    .register-form-box {
        padding: 22px 15px;
    }

    .input-box {
        gap: 8px;
        padding: 0 10px;
    }

    .input-box input,
    .input-box select {
        font-size: 13px;
    }

    .country-code {
        padding-right: 7px;
        font-size: 13px;
    }

    .submit-btn {
        padding: 12px 10px;
        font-size: 14px;
    }

    .footer-logo h2 {
        font-size: 20px;
    }
}

/* =========================================
   17. ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}