:root {
    --primary-color: #F6A847;
    --primary-hover: #E59635;
    --dark-bg: #2C3338;
    --text-main: #2D3748;
    --text-light: #ffffff;
    --text-muted: #718096;
    --bg-main: #F7FAFC;
    --bg-card: #FFFFFF;
    --border-color: #E2E8F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
.site-header {
    background-color: var(--bg-card);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-logo {
    height: 45px;
    object-fit: contain;
}


/* Main Content */
main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 50px 20px;
}

.container {
    background-color: var(--bg-card);
    width: 100%;
    max-width: 550px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    padding: 45px 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.02);
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--primary-color), #FFD180);
}

.form-header {
    text-align: center;
    margin-bottom: 35px;
}

.form-header h1 {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
}

.form-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* Form Styles */
.form-group {
    margin-bottom: 22px;
    text-align: right;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
}

/* Crucial: font-size 16px to prevent zoom on iOS */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
select {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px; 
    color: var(--text-main);
    background-color: #F8FAFC;
    transition: all 0.3s ease;
    outline: none;
    -webkit-appearance: none;
    font-weight: 500;
}

input:focus,
select:focus {
    border-color: var(--primary-color);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(246, 168, 71, 0.15);
}

.submit-btn, .payment-btn {
    width: 100%;
    padding: 18px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 6px 20px rgba(246, 168, 71, 0.35);
}

.submit-btn:hover, .payment-btn:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 8px 25px rgba(246, 168, 71, 0.45);
    transform: translateY(-2px);
}

.submit-btn:active, .payment-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 10px rgba(246, 168, 71, 0.3);
}

/* Checkout Page Specific Styles */
.checkout-info {
    text-align: center;
    margin-bottom: 35px;
    padding: 30px 20px;
    background-color: #FFFDF8;
    border: 2px dashed #F6A847;
    border-radius: 16px;
    position: relative;
}

.checkout-info h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.7rem;
    font-weight: 800;
}

.checkout-info p {
    font-size: 1.15rem;
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.7;
}

.fee-amount {
    display: block;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary-color);
    margin: 20px 0;
    text-shadow: 0 4px 10px rgba(246, 168, 71, 0.2);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-btn {
    background-color: #ffffff;
    color: var(--text-main);
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 25px;
}

.payment-btn:hover {
    background-color: #F8FAFC;
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.payment-btn img {
    height: 38px;
    object-fit: contain;
}

.payment-btn span {
    font-size: 1.1rem;
}

/* Footer Styles */
.site-footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 40px 20px 20px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
}

.footer-logo {
    height: 55px;
    margin-bottom: 15px;
    background-color: #ffffff;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.footer-info p {
    color: #A0AEC0;
    font-size: 1.05rem;
    max-width: 450px;
    line-height: 1.7;
}

.footer-copy {
    border-top: 1px solid rgba(255,255,255,0.08);
    width: 100%;
    padding-top: 20px;
    color: #718096;
    font-size: 0.95rem;
}

/* Mobile Responsiveness & Polishing */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }
    
    .site-logo {
        height: 40px;
    }

    main {
        padding: 30px 15px;
    }

    .container {
        padding: 35px 25px;
        border-radius: 16px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    }

    .form-header h1 {
        font-size: 1.6rem;
    }

    .submit-btn, .payment-btn {
        font-size: 1.15rem;
        padding: 16px;
    }
    
    .checkout-info {
        padding: 25px 15px;
    }
    
    .fee-amount {
        font-size: 2.3rem;
    }
}
