/* Hickmet Premium - Umrah Giveaway - Premium brown, elegant, mobile-first */

:root {
    --color-cream: #faf8f5;
    --color-gold: #c9a227;
    --color-gold-dark: #a67c00;
    --color-brown: #6B4423;
    --color-brown-dark: #4a2f18;
    --color-charcoal: #2c3e50;
    --color-sand: #e8e0d5;
    --color-white: #ffffff;
    --shadow-soft: 0 4px 20px rgba(107, 68, 35, 0.08);
    --shadow-card: 0 8px 32px rgba(107, 68, 35, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --font-arabic: "Amiri", serif;
    --font-body: "Open Sans", sans-serif;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background: var(--color-cream);
    color: var(--color-charcoal);
    min-height: 100vh;
    line-height: 1.6;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.crescent {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.crescent::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    background: var(--color-cream);
    border-radius: 50%;
}

.title {
    font-family: var(--font-arabic);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-brown);
}

.subtitle {
    margin-top: 0.5rem;
    color: var(--color-charcoal);
    opacity: 0.8;
    font-size: 1rem;
}

.main {
    flex: 1;
    width: 100%;
    max-width: 420px;
}

.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(201, 162, 39, 0.2);
}

.step-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-brown);
}

.instruction {
    margin-bottom: 1.5rem;
    color: var(--color-charcoal);
    opacity: 0.85;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.field {
    display: flex;
    flex-direction: column;
}

.field label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--color-charcoal);
}

.field input {
    padding: 0.9rem 1rem;
    border: 1px solid var(--color-sand);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus {
    outline: none;
    border-color: var(--color-brown);
    box-shadow: 0 0 0 3px rgba(107, 68, 35, 0.15);
}

.field input::placeholder {
    color: #999;
}

.btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn:active {
    transform: scale(0.98);
}

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

.btn[type="submit"] {
    background: linear-gradient(135deg, var(--color-brown) 0%, var(--color-brown-dark) 100%);
    color: var(--color-white);
    margin-top: 0.5rem;
}

.btn[type="submit"]:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--color-brown-dark) 0%, #3d2614 100%);
}

.btn-secondary {
    background: var(--color-sand);
    color: var(--color-charcoal);
    width: 100%;
    margin-top: 1.5rem;
}

.btn-secondary:hover {
    background: #ddd5c8;
}

.error {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fee;
    color: #c33;
    border-radius: var(--radius);
    font-size: 0.875rem;
    display: none;
}

.error.visible {
    display: block;
}

.hidden {
    display: none !important;
}

.result-card {
    text-align: center;
}

/* Premium coupon - luxury paper, gold accents, screenshot-ready */
.coupon-paper {
    background: linear-gradient(165deg, #faf6ef 0%, #f2ebe0 40%, #e8dfd2 100%);
    border: 1px solid rgba(184, 151, 95, 0.35);
    border-radius: 2px;
    padding: 2rem 2.25rem;
    margin: 0 auto;
    max-width: 360px;
    position: relative;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 4px 12px rgba(74, 47, 24, 0.06),
        0 12px 40px rgba(74, 47, 24, 0.1);
}

.coupon-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: rgba(184, 151, 95, 0.4);
    border-style: solid;
    border-width: 0;
    pointer-events: none;
}

.coupon-corner-tl {
    top: 12px;
    left: 12px;
    border-top-width: 1px;
    border-left-width: 1px;
}

.coupon-corner-tr {
    top: 12px;
    right: 12px;
    border-top-width: 1px;
    border-right-width: 1px;
}

.coupon-corner-bl {
    bottom: 12px;
    left: 12px;
    border-bottom-width: 1px;
    border-left-width: 1px;
}

.coupon-corner-br {
    bottom: 12px;
    right: 12px;
    border-bottom-width: 1px;
    border-right-width: 1px;
}

.coupon-inner {
    position: relative;
    z-index: 1;
}

.coupon-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.coupon-brand {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #a67c00 0%, #c9a227 50%, #b8952e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coupon-title {
    font-size: 0.95rem;
    font-weight: 400;
    color: #3d2e1f;
    letter-spacing: 0.06em;
}

.coupon-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.25rem 0;
    gap: 0.5rem;
}

.coupon-divider::before,
.coupon-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 151, 95, 0.5) 30%, rgba(184, 151, 95, 0.5) 70%, transparent);
}

.coupon-divider-ornament {
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #c9a227, #8b6914);
    transform: rotate(45deg);
}

.coupon-code-block {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(248,244,236,0.5) 100%);
    border: 1px solid rgba(184, 151, 95, 0.25);
    margin: 0.75rem 0;
}

.coupon-code {
    font-family: var(--font-arabic), "Georgia", serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    background: linear-gradient(180deg, #4a2f18 0%, #6B4423 50%, #3d2614 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coupon-note {
    font-size: 0.8rem;
    color: #4a3c2e;
    opacity: 0.85;
    margin-top: 0.5rem;
}

.coupon-footer-text {
    font-size: 0.7rem;
    color: #5c4a38;
    opacity: 0.6;
    margin-top: 1rem;
    letter-spacing: 0.08em;
}

.coupon-cta {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-sand);
}

.cta-label {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-charcoal);
    opacity: 0.85;
    margin-bottom: 0.75rem;
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius);
    margin-top: 0.5rem;
    transition: opacity 0.2s;
}

.cta-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.cta-btn:hover {
    opacity: 0.9;
}

.cta-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.cta-whatsapp {
    background: #25d366;
    color: white;
}

.footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-charcoal);
    opacity: 0.6;
}

/* Language modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 62, 80, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
}

.modal {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 360px;
    width: 100%;
    box-shadow: var(--shadow-card);
}

.modal h2 {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-charcoal);
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 0.02em;
}

.lang-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
    font-weight: 400;
    border: 1px solid var(--color-sand);
    border-radius: var(--radius);
    background: var(--color-white);
    color: var(--color-charcoal);
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn:hover {
    border-color: var(--color-brown);
    background: var(--color-cream);
    color: var(--color-brown);
}

/* Confirmation overlay */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 62, 80, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
}

.confirm-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 360px;
    width: 100%;
}

.confirm-phone {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-brown);
    margin: 1rem 0;
    letter-spacing: 0.05em;
}

.confirm-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.confirm-btn {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.confirm-btn-primary {
    background: linear-gradient(135deg, var(--color-brown) 0%, var(--color-brown-dark) 100%);
    color: var(--color-white);
}

.confirm-btn-secondary {
    background: var(--color-sand);
    color: #1a1a1a;
}

/* Premium loading */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(250, 248, 245, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    gap: 1.5rem;
}

.loader-spinner {
    width: 64px;
    height: 64px;
    border: 4px solid var(--color-sand);
    border-top-color: var(--color-brown);
    border-radius: 50%;
    animation: loader-spin 1s linear infinite;
}

.loader-pulse {
    width: 48px;
    height: 48px;
    background: var(--color-brown);
    border-radius: 50%;
    opacity: 0.3;
    animation: loader-pulse 1.2s ease-in-out infinite;
}

.loader-text {
    font-size: 1rem;
    color: var(--color-charcoal);
}

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

@keyframes loader-pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

@media (min-width: 480px) {
    .title {
        font-size: 2.25rem;
    }

    .coupon-paper {
        max-width: 380px;
        padding: 2.25rem 2.5rem;
    }

    .coupon-code {
        font-size: 2.75rem;
    }
}
