:root {
    /* Brand Colors extracted from logo */
    --brand-green: #7eb438;
    --brand-green-dark: #639228;
    --brand-orange: #f49b1e;
    --brand-orange-dark: #d68310;
    
    /* Neutral & Backgrounds */
    --bg-light: #fafafa;
    --text-dark: #1a202c;
    --text-muted: #718096;
    --text-light: #ffffff;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    
    /* Forms */
    --input-bg: rgba(255, 255, 255, 0.8);
    --input-border: #e2e8f0;
    --input-focus-shadow: 0 0 0 4px rgba(126, 180, 56, 0.15);
}

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

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* =========================================
   Animated Background Blobs
   ========================================= */
.bg-shape {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.shape-green {
    width: 600px;
    height: 600px;
    background: linear-gradient(to right, var(--brand-green), #a1d45c);
    top: -10%;
    right: -5%;
    animation-duration: 25s;
}

.shape-orange {
    width: 450px;
    height: 450px;
    background: linear-gradient(to right, var(--brand-orange), #ffd07f);
    bottom: -10%;
    left: 5%;
    animation-duration: 22s;
    animation-delay: -5s;
}

.shape-light-green {
    width: 300px;
    height: 300px;
    background: #d4e8b3;
    top: 40%;
    left: 40%;
    animation-duration: 18s;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(30px, -50px) rotate(10deg) scale(1.1); }
    66% { transform: translate(-20px, 20px) rotate(-5deg) scale(0.9); }
    100% { transform: translate(40px, 40px) rotate(15deg) scale(1.05); }
}

/* =========================================
   Layout
   ========================================= */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left & Right Sections */
.info-section {
    flex: 1.2;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.form-section {
    flex: 1;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid var(--glass-border);
}

@media (max-width: 992px) {
    .layout-wrapper {
        flex-direction: column;
    }
    .info-section {
        padding: 40px 20px;
        text-align: center;
    }
    .form-section {
        padding: 40px 20px;
        border-right: none;
        border-top: 1px solid var(--glass-border);
    }
}

/* =========================================
   Info Content
   ========================================= */
.info-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    max-width: 650px;
    margin: 0 auto;
}

.logo {
    max-width: 180px;
    margin-bottom: 30px;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.highlight-green { color: var(--brand-green); }
.highlight-orange { color: var(--brand-orange); }

.separator {
    width: 80px;
    height: 6px;
    background: linear-gradient(to left, var(--brand-green), var(--brand-orange));
    border-radius: 10px;
    margin-bottom: 30px;
}

.description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.description strong {
    color: var(--brand-green-dark);
}

.quote-card {
    background: rgba(244, 155, 30, 0.1);
    padding: 25px;
    border-radius: 20px;
    border-right: 4px solid var(--brand-orange);
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: var(--brand-orange);
    position: absolute;
    top: -15px;
    right: 20px;
    background: #fff;
    border-radius: 50%;
    padding: 5px;
}

.quote-card p {
    font-style: italic;
    color: #9c600b;
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.6;
}

.side-footer {
    margin-top: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .main-title { font-size: 2.5rem; }
    .info-content { padding: 30px; }
    .separator { margin: 20px auto; }
}

/* =========================================
   Form Content
   ========================================= */
.form-container {
    width: 100%;
    max-width: 500px;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--glass-shadow);
    border: 1px solid rgba(255,255,255,0.8);
}

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

.form-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-green-dark);
    margin-bottom: 8px;
}

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

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}
.form-row .input-group {
    flex: 1;
}

@media (max-width: 500px) {
    .form-row { flex-direction: column; }
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-right: 5px;
}

.req {
    color: #e53e3e;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    right: 15px;
    font-size: 1.2rem;
    color: var(--brand-green);
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 14px 15px 14px 40px; /* Padding for icon on the right (RTL) */
    padding-right: 45px;
    border: 1.5px solid var(--input-border);
    border-radius: 16px;
    background: var(--input-bg);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: var(--brand-green);
    box-shadow: var(--input-focus-shadow);
    background: #fff;
}

.input-wrapper input:focus + .input-icon,
.input-wrapper select:focus + .input-icon {
    transform: scale(1.1);
    color: var(--brand-green-dark);
}

.input-wrapper select {
    appearance: none;
    cursor: pointer;
}

/* Custom dropdown arrow for RTL */
.input-wrapper::after {
    content: '\eb31'; /* boxicons chevron-down */
    font-family: 'boxicons';
    position: absolute;
    left: 15px;
    font-size: 1.2rem;
    color: var(--text-muted);
    pointer-events: none;
}
.input-wrapper:has(input)::after {
    display: none;
}

.divider-text {
    text-align: center;
    position: relative;
    margin: 10px 0;
}

.divider-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--input-border);
    z-index: 1;
}

.divider-text span {
    position: relative;
    z-index: 2;
    background: var(--bg-light);
    padding: 0 15px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
}

/* Submit Button */
.btn-submit {
    margin-top: 15px;
    padding: 16px;
    background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(126, 180, 56, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(126, 180, 56, 0.4);
}

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

.btn-icon {
    font-size: 1.5rem;
}

.security-notice {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.security-notice i {
    color: var(--brand-green);
    font-size: 1rem;
}

/* =========================================
   Entry Animations
   ========================================= */
.animate-fade-in { animation: fadeIn 1s ease both; }
.animate-slide-up { animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both; }
.animate-slide-left { animation: slideLeft 1s cubic-bezier(0.4, 0, 0.2, 1) both; }

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}
