/* ============================================
   Urgent Dubai Deals — Clean Minimal Stylesheet
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #ffffff;
    color: #1a1a2e;
    min-height: 100vh;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Layout --- */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Site Logo --- */
.site-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.site-logo img {
    max-width: 230px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* --- Landing Page Hero --- */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    background: #fafbfc;
}

.hero-inner {
    width: 100%;
    max-width: 560px;
}

.hero h1 {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 10px;
    color: #1a1a2e;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 36px;
    line-height: 1.5;
}

/* --- CTA Buttons --- */
.cta-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    min-height: 56px;
    letter-spacing: -0.01em;
}

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

.btn-sell {
    background: #16a34a;
    color: #fff;
}

.btn-sell:hover {
    background: #15803d;
    box-shadow: 0 2px 12px rgba(22, 163, 74, 0.2);
}

.btn-buy {
    background: #2563eb;
    color: #fff;
}

.btn-buy:hover {
    background: #1d4ed8;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.2);
}

.btn-normal {
    background: #f59e0b;
    color: #fff;
    margin-top: 14px;
}

.btn-normal:hover {
    background: #d97706;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.2);
}

.btn-submit {
    background: #1a1a2e;
    color: #fff;
    margin-top: 8px;
}

.btn-submit:hover {
    background: #2d2d44;
    box-shadow: 0 2px 12px rgba(26, 26, 46, 0.15);
}

/* --- Divider --- */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px 0 0;
    color: #9ca3af;
    font-size: 0.8rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* --- Trust Indicators --- */
.trust-strip {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-item svg {
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

.trust-label {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}

.form-page > .site-logo {
    width: 100%;
    max-width: 560px;
    margin: 0 auto 8px;
    padding-top: 8px;
}

/* --- Form Pages --- */
.form-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #fafbfc;
}

.form-header {
    text-align: center;
    padding: 8px 0 28px;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
}

.form-header .back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 20px;
    transition: color 0.15s;
    font-weight: 500;
}

.form-header .back-link:hover {
    color: #1a1a2e;
}

.form-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1a1a2e;
    letter-spacing: -0.02em;
}

.form-header p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* --- Form Styles --- */
.form-card {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-group label .optional {
    font-weight: 400;
    color: #9ca3af;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #1a1a2e;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* File upload */
.file-upload-area {
    border: 1.5px dashed #d1d5db;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
    cursor: pointer;
    background: #fff;
}

.file-upload-area:hover {
    border-color: #2563eb;
    background: #f8faff;
}

.file-upload-area svg {
    width: 32px;
    height: 32px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.file-upload-area p {
    font-size: 0.85rem;
    color: #6b7280;
}

.file-upload-area p strong {
    color: #2563eb;
    font-weight: 600;
}

.file-upload-area input[type="file"] {
    display: none;
}

.file-upload-area .file-hint {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 4px;
}

/* Selected files display */
.file-names {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #374151;
}

/* Validation */
.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.field-error {
    display: none;
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 4px;
}

/* --- Success Page --- */
.success-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    background: #fafbfc;
}

.success-card {
    max-width: 420px;
}

.success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 28px;
    height: 28px;
    color: #16a34a;
}

.success-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.success-card p {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 28px;
    line-height: 1.6;
}

.success-card .btn {
    max-width: 240px;
    margin: 0 auto;
}

/* --- Error Banner --- */
.error-banner {
    max-width: 560px;
    margin: 0 auto 20px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 0.85rem;
    line-height: 1.5;
}

.error-banner ul {
    margin: 4px 0 0 16px;
    padding: 0;
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 20px 24px;
    font-size: 0.75rem;
    color: #9ca3af;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

/* --- Responsive --- */
@media (min-width: 640px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .cta-group {
        flex-direction: row;
    }

    .btn {
        flex: 1;
    }

    .trust-strip {
        gap: 40px;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}
