/* =========================================================
   RDHome - Customer Inquiry Portal & AR Experience Styles
   Clean Light Mode Design System (No Neons / No Gradients)
   ========================================================= */

:root {
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-subtle: #f1f5f9;
    --border-light: #e2e8f0;
    --border-input: #cbd5e1;
    --border-focus: #07142b;

    --brand-navy: #07142b;
    --brand-navy-hover: #112a5a;
    --brand-crimson: #c0262b;
    --brand-blue: #2563eb;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #ffffff;

    --input-bg: #ffffff;
    --input-color: #0f172a;

    --success-bg: #ecfdf5;
    --success-border: #10b981;
    --success-text: #065f46;

    --error-bg: #fef2f2;
    --error-border: #ef4444;
    --error-text: #991b1b;

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

body.inquire-body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    position: relative;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Top Navigation Bar (Clean Light) */
.inquire-navbar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 14px 32px;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.brand-logo-badge {
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-text-block {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--brand-navy);
    display: flex;
    align-items: center;
}


.brand-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--bg-surface);
    color: var(--brand-navy);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.admin-login-btn:hover {
    background-color: var(--bg-surface-subtle);
    border-color: var(--brand-navy);
    color: var(--brand-navy);
}

.admin-login-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Main Container */
.inquire-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px 60px 24px;
}

.portal-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background-color: var(--bg-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

/* Left Hero & App Showcase Panel */
.showcase-panel {
    background-color: var(--bg-surface-subtle);
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--border-light);
}

.showcase-content {
    display: flex;
    flex-direction: column;
}

.showcase-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background-color: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    color: #0369a1;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 18px;
    align-self: flex-start;
}

.showcase-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--brand-navy);
    margin-bottom: 14px;
}

.showcase-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 28px;
}

/* AR Preview Showcase Cards */
.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 28px;
}

.preview-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background-color: #e2e8f0;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.preview-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 6px 10px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-navy);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

.preview-badge svg {
    width: 14px;
    height: 14px;
    fill: var(--brand-blue);
    flex-shrink: 0;
}

/* App Download Banner */
.download-banner {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.download-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.download-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background-color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.download-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.download-titles h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 2px;
}

.download-titles p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background-color: var(--brand-navy);
    color: #ffffff;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.download-btn:hover {
    background-color: var(--brand-navy-hover);
    transform: translateY(-1px);
}

.download-btn svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* Right Form Panel */
.form-panel {
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-surface);
}

.form-header {
    margin-bottom: 24px;
}

.form-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand-crimson);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.form-header-badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.form-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--brand-navy);
    letter-spacing: -0.4px;
    margin-bottom: 6px;
}

.form-subtitle {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

/* Alert Boxes */
.alert-box {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-success {
    background-color: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
}

.alert-danger {
    background-color: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-text);
}

.alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.alert-body {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert-body strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
    font-weight: 700;
}

/* Form Groups & Controls */
.form-group {
    margin-bottom: 18px;
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.form-label-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-label-text svg {
    width: 15px;
    height: 15px;
    fill: #64748b;
}

.form-label-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    color: var(--input-color);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.form-control:focus {
    background-color: #ffffff;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Select Control */
.select-wrapper {
    position: relative;
    width: 100%;
}

.select-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 40px;
}

.select-control option {
    background-color: #ffffff;
    color: #0f172a;
    padding: 10px;
}

.select-control:has(option[value=""]:checked),
.select-control:invalid {
    color: #94a3b8;
}

.select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #64748b;
    display: flex;
    align-items: center;
}

.select-arrow svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Textarea */
textarea.form-control {
    min-height: 105px;
    resize: vertical;
    line-height: 1.5;
}

/* Submit Button (Solid Brand Navy) */
.submit-btn-wrapper {
    margin-top: 24px;
}

.submit-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    background-color: var(--brand-navy);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(7, 20, 43, 0.12);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    background-color: var(--brand-navy-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(7, 20, 43, 0.18);
}

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

.submit-btn svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

/* Footer */
.inquire-footer {
    text-align: center;
    padding: 20px 16px;
    color: var(--text-muted);
    font-size: 0.82rem;
    border-top: 1px solid var(--border-light);
    background-color: var(--bg-surface);
}

.inquire-footer a {
    color: var(--brand-navy);
    text-decoration: none;
    font-weight: 600;
}

.inquire-footer a:hover {
    text-decoration: underline;
}

/* Dynamic color options */
#color-group {
    transition: all 0.2s ease;
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
    .portal-wrapper {
        grid-template-columns: 1fr;
        border-radius: var(--radius-lg);
    }

    .showcase-panel {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding: 32px 24px;
    }

    .form-panel {
        padding: 32px 24px;
    }

    .showcase-title {
        font-size: 1.85rem;
    }
}

@media (max-width: 640px) {
    .inquire-navbar {
        padding: 12px 18px;
    }

    .brand-logo-img {
        height: 32px;
    }

    .brand-tagline {
        display: none;
    }

    .inquire-main {
        padding: 16px 12px 32px 12px;
    }

    .showcase-panel,
    .form-panel {
        padding: 24px 18px;
    }

    .preview-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .download-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .download-meta {
        flex-direction: column;
    }

    .download-btn {
        justify-content: center;
    }
}