/* ===== جائزة المرأة الملهمة — التصميم الرئيسي ===== */

/* ===== Google Font ===== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

/* ===== CSS Variables ===== */
:root {
    --brown-dark: #3E1F1C;
    --brown-medium: #5C3A2E;
    --brown-light: #8B5E3C;
    --gold: #C9A96E;
    --gold-light: #D4BA8A;
    --gold-glow: rgba(201, 169, 110, 0.3);
    --cream: #FDF8F0;
    --cream-dark: #F5EDE0;
    --white: #FFFFFF;
    --text-dark: #2C1810;
    --text-muted: #8C7B6B;
    --error: #E74C3C;
    --success: #27AE60;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px rgba(62, 31, 28, 0.12);
    --shadow-hover: 0 12px 48px rgba(62, 31, 28, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    min-height: 100vh;
    direction: rtl;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== Background Pattern ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(201, 169, 110, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(62, 31, 28, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(201, 169, 110, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ===== Decorative Elements ===== */
.decor-circle {
    position: fixed;
    border-radius: 50%;
    border: 1px solid rgba(201, 169, 110, 0.12);
    pointer-events: none;
    z-index: 0;
}

/* ===== Animated Background Waves ===== */
.waves-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12vh;
    min-height: 80px;
    max-height: 140px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
}

.waves {
    position: relative;
    width: 100%;
    height: 100%;
}

.parallax > use {
    animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 12s;
}

.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 16s;
}

.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 20s;
}

.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 26s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}

.decor-circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation: floatSlow 20s ease-in-out infinite;
}

.decor-circle-2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -80px;
    animation: floatSlow 25s ease-in-out infinite reverse;
}

.decor-circle-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 5%;
    animation: floatSlow 18s ease-in-out infinite 5s;
}

@keyframes floatSlow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(15px, -20px) rotate(5deg); }
    50% { transform: translate(-10px, 15px) rotate(-3deg); }
    75% { transform: translate(20px, 10px) rotate(4deg); }
}

/* ===== Page Container ===== */
.page-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px 60px;
}

/* ===== Header ===== */
.header {
    text-align: center;
    margin-bottom: 10px;
    animation: fadeInDown 0.8s ease-out;
}

.logo-wrapper {
    margin-bottom: 16px;
}

.logo-wrapper img {
    max-width: 340px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(62, 31, 28, 0.15));
    transition: var(--transition);
}

.logo-wrapper img:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 6px 20px rgba(62, 31, 28, 0.25));
}

.header-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.header-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ===== Form Card ===== */
.form-card {
    width: 100%;
    max-width: 680px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: var(--radius);
    padding: 40px 36px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.8s ease-out 0.2s both;
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brown-dark), var(--gold), var(--brown-dark));
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brown-dark);
    text-align: center;
    margin-bottom: 8px;
}

.form-description {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 32px;
    line-height: 1.8;
}

/* ===== Form Groups ===== */
.form-group {
    margin-bottom: 22px;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.form-group:nth-child(1) { animation-delay: 0.3s; }
.form-group:nth-child(2) { animation-delay: 0.4s; }
.form-group:nth-child(3) { animation-delay: 0.5s; }
.form-group:nth-child(4) { animation-delay: 0.6s; }
.form-group:nth-child(5) { animation-delay: 0.7s; }
.form-group:nth-child(6) { animation-delay: 0.8s; }
.form-group:nth-child(7) { animation-delay: 0.9s; }
.form-group:nth-child(8) { animation-delay: 1.0s; }
.form-group:nth-child(9) { animation-delay: 1.1s; }
.form-group:nth-child(10) { animation-delay: 1.2s; }
.form-group:nth-child(11) { animation-delay: 1.3s; }
.form-group:nth-child(12) { animation-delay: 1.4s; }

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brown-dark);
    margin-bottom: 6px;
}

.form-label .required {
    color: var(--error);
    margin-right: 2px;
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 400;
}

/* ===== Inputs ===== */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--white);
    border: 2px solid rgba(201, 169, 110, 0.25);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
    direction: rtl;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #C4B8A8;
    font-weight: 300;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: rgba(201, 169, 110, 0.5);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px var(--gold-glow);
    background: var(--white);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--error);
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23C9A96E'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-left: 40px;
}

.form-textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.8;
}

.error-message {
    display: none;
    font-size: 0.8rem;
    color: var(--error);
    margin-top: 6px;
    font-weight: 500;
}

.form-group.has-error .error-message {
    display: block;
}

/* ===== Submit Button ===== */
.submit-btn {
    width: 100%;
    padding: 16px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cream);
    background: linear-gradient(135deg, var(--brown-dark), var(--brown-medium));
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(62, 31, 28, 0.35);
}

.submit-btn:hover::before {
    left: 100%;
}

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

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

.submit-btn .btn-text {
    position: relative;
    z-index: 1;
}

.submit-btn .btn-loader {
    display: none;
    position: relative;
    z-index: 1;
}

.submit-btn.loading .btn-text { display: none; }
.submit-btn.loading .btn-loader { display: inline-flex; align-items: center; gap: 8px; }

/* ===== Spinner ===== */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(253, 248, 240, 0.3);
    border-top-color: var(--cream);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Success Message ===== */
.success-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(62, 31, 28, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.success-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.success-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 48px 36px;
    text-align: center;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.4s ease-out;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    animation: bounceIn 0.6s ease-out 0.3s both;
}

.success-logo {
    margin: 0 auto 24px;
    text-align: center;
    animation: bounceIn 0.6s ease-out 0.3s both;
}

.success-logo img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(62, 31, 28, 0.15));
}

.success-card h3 {
    font-size: 1.4rem;
    color: var(--brown-dark);
    margin-bottom: 10px;
}

.success-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.success-close-btn {
    padding: 12px 40px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: var(--brown-dark);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.success-close-btn:hover {
    background: var(--brown-medium);
    transform: translateY(-1px);
}

/* ===== Error Toast ===== */
.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    background: var(--error);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: 'Tajawal', sans-serif;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.3);
    z-index: 2000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 90%;
    text-align: center;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: auto;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--gold);
}

/* ===== Animations ===== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { transform: scale(1.1); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .page-container {
        padding: 20px 14px 40px;
    }

    .logo-wrapper img {
        max-width: 260px;
    }

    .form-card {
        padding: 28px 20px;
    }

    .form-title {
        font-size: 1.25rem;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .success-card {
        padding: 36px 24px;
    }

    .decor-circle { display: none; }
}

@media (max-width: 400px) {
    .logo-wrapper img {
        max-width: 220px;
    }

    .form-card {
        padding: 24px 16px;
    }

    .header-subtitle {
        font-size: 0.85rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    body { background: white; }
    .decor-circle,
    .submit-btn,
    .footer { display: none; }
    .form-card {
        box-shadow: none;
        border: 1px solid #ddd;
        backdrop-filter: none;
    }
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(150px);
    width: 90%;
    max-width: 720px;
    background: rgba(62, 31, 28, 0.96); /* Dark brown matching logo */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: var(--radius-sm);
    padding: 16px 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    z-index: 1500;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    opacity: 0;
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-text {
    font-size: 0.88rem;
    color: var(--cream);
    line-height: 1.6;
}

.cookie-link {
    color: var(--gold);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-link:hover {
    color: var(--gold-light);
}

.cookie-btn {
    padding: 8px 24px;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brown-dark);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.cookie-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 169, 110, 0.2);
}

@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .cookie-btn {
        width: 100%;
    }
}
