/* ==========================================================================
   Renvima - Split Contact Page Styles
   Theme: Renvima Space-Glass with signature Cyan-Indigo-Purple Gradients,
   glowing pill badges, ambient lighting, and mobile/Android responsiveness.
   ========================================================================== */

/* Main Split Container with Ambient Depth */
.split-contact-section {
    position: relative;
    width: 100%;
    min-height: calc(100vh - var(--header-height, 70px));
    padding: 7rem 2rem 6rem;
    max-width: 1280px;
    margin: 0 auto;
    box-sizing: border-box;
}

.split-contact-section::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 8%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, rgba(99, 102, 241, 0.04) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}

.split-contact-section::after {
    content: '';
    position: absolute;
    bottom: 5%;
    right: 5%;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.07) 0%, rgba(56, 189, 248, 0.03) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}

[data-theme="light"] .split-contact-section::before {
    background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 70%);
}

[data-theme="light"] .split-contact-section::after {
    background: radial-gradient(circle, rgba(147, 51, 234, 0.06) 0%, rgba(2, 132, 199, 0.03) 50%, transparent 70%);
}

.split-contact-grid {
    display: grid;
    grid-template-columns: minmax(340px, 440px) minmax(0, 1fr);
    gap: 4.5rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Left Column: Custom Solutions & Direct Contact
   ========================================================================== */
.split-contact-left {
    position: sticky;
    top: 6.5rem;
    align-self: start;
}

/* Renvima Glowing Pill Badge */
.renvima-pill-badge,
.studio-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.15rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #38bdf8;
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.renvima-pill-badge i,
.studio-tag i {
    color: #38bdf8;
    font-size: 0.85rem;
}

[data-theme="light"] .renvima-pill-badge,
[data-theme="light"] .studio-tag {
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.28);
    color: #0284c7;
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.12);
}

[data-theme="light"] .renvima-pill-badge i,
[data-theme="light"] .studio-tag i {
    color: #0284c7;
}

/* Renvima Gradient Headline */
.split-page-title,
.studio-title {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    font-size: clamp(2.2rem, 3.8vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
    color: #ffffff;
    margin: 0 0 1.35rem 0;
}

[data-theme="light"] .split-page-title,
[data-theme="light"] .studio-title {
    color: #0f172a;
}

.split-page-title .gradient-text,
.studio-title .gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

[data-theme="light"] .split-page-title .gradient-text,
[data-theme="light"] .studio-title .gradient-text {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtitle Narrative */
.split-page-desc,
.studio-desc {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.68;
    margin-bottom: 2.3rem;
    max-width: 440px;
}

[data-theme="light"] .split-page-desc,
[data-theme="light"] .studio-desc {
    color: #475569;
}

/* Direct Email & Big Attachments Card (Renvima Glass Style) */
.direct-email-card {
    background: rgba(10, 16, 38, 0.72);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 20px;
    padding: 1.8rem 2rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(56, 189, 248, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.28s ease;
    position: relative;
    overflow: hidden;
}

.direct-email-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
}

.direct-email-card:hover {
    border-color: rgba(56, 189, 248, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), 0 0 32px rgba(56, 189, 248, 0.12);
}

[data-theme="light"] .direct-email-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 36px rgba(148, 163, 184, 0.14);
}

[data-theme="light"] .direct-email-card::before {
    background: linear-gradient(90deg, #0284c7 0%, #2563eb 50%, #7c3aed 100%);
}

[data-theme="light"] .direct-email-card:hover {
    border-color: #0284c7;
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(2, 132, 199, 0.16);
}

.card-pill-tag,
.direct-email-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #38bdf8;
    margin-bottom: 0.8rem;
    padding: 0.25rem 0.75rem;
    background: rgba(56, 189, 248, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

[data-theme="light"] .card-pill-tag,
[data-theme="light"] .direct-email-label {
    color: #0284c7;
    background: rgba(2, 132, 199, 0.06);
    border-color: rgba(2, 132, 199, 0.2);
}

.direct-email-address {
    display: inline-block;
    font-family: 'Space Grotesk', 'Courier New', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 0.85rem;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    word-break: break-all;
}

.direct-email-address:hover {
    color: #38bdf8;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

[data-theme="light"] .direct-email-address {
    color: #0f172a;
}

[data-theme="light"] .direct-email-address:hover {
    color: #0284c7;
    text-shadow: none;
}

.direct-email-desc {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.35rem;
}

[data-theme="light"] .direct-email-desc {
    color: #475569;
}

.direct-email-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.direct-email-actions .btn {
    padding: 0.55rem 1.15rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* ==========================================================================
   Right Column: The Form Card
   ========================================================================== */
.split-contact-right {
    min-width: 0; /* Prevents grid blowout */
}

.split-form-panel {
    background: rgba(10, 16, 38, 0.72);
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: 24px;
    padding: 2.85rem 2.6rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(56, 189, 248, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.split-form-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
}

[data-theme="light"] .split-form-panel {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 50px rgba(148, 163, 184, 0.14);
}

[data-theme="light"] .split-form-panel::before {
    background: linear-gradient(90deg, #0284c7 0%, #2563eb 50%, #7c3aed 100%);
}

/* Form Grid */
.split-contact-right .contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
}

.split-contact-right .form-group {
    display: flex;
    flex-direction: column;
}

.split-contact-right .form-group.full-width {
    grid-column: span 2;
}

.split-contact-right .field-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.45rem;
    letter-spacing: -0.01em;
}

[data-theme="light"] .split-contact-right .field-label {
    color: #1e293b;
}

.split-contact-right .required-star {
    color: #f43f5e;
    margin-left: 0.2rem;
}

/* Inputs, Selects, and Textareas */
.split-contact-right .glass-input {
    width: 100%;
    padding: 0.85rem 1.05rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    box-sizing: border-box;
    transition: all 0.22s ease;
}

.split-contact-right .glass-input:focus {
    outline: none;
    border-color: #38bdf8;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.split-contact-right .glass-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

[data-theme="light"] .split-contact-right .glass-input {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

[data-theme="light"] .split-contact-right .glass-input:focus {
    background: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}

[data-theme="light"] .split-contact-right .glass-input::placeholder {
    color: #94a3b8;
}

/* Dropdown select options */
.split-contact-right select.glass-input option {
    background-color: #0f172a;
    color: #ffffff;
    padding: 0.5rem;
}

[data-theme="light"] .split-contact-right select.glass-input option {
    background-color: #ffffff;
    color: #0f172a;
}

/* File Dropzone & Big Attachments Notice */
.file-dropzone {
    position: relative;
    border: 1.5px dashed rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 1.8rem 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.25s ease;
}

.file-dropzone:hover,
.file-dropzone.drag-active {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.05);
}

[data-theme="light"] .file-dropzone {
    border-color: #cbd5e1;
    background: #f8fafc;
}

[data-theme="light"] .file-dropzone:hover,
[data-theme="light"] .file-dropzone.drag-active {
    border-color: #0284c7;
    background: rgba(2, 132, 199, 0.04);
}

.file-dropzone-icon {
    font-size: 1.8rem;
    color: #38bdf8;
    margin-bottom: 0.5rem;
}

[data-theme="light"] .file-dropzone-icon {
    color: #0284c7;
}

.file-dropzone-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.25rem;
}

[data-theme="light"] .file-dropzone-text {
    color: #1e293b;
}

.file-dropzone-subtext {
    font-size: 0.82rem;
    color: #94a3b8;
}

/* Clear Notice Banner for Big Attachments / ZIP */
.file-limit-warning {
    margin-top: 0.85rem;
    padding: 0.85rem 1.1rem;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.5;
}

[data-theme="light"] .file-limit-warning {
    background: rgba(2, 132, 199, 0.06);
    border-color: rgba(2, 132, 199, 0.22);
    color: #334155;
}

.file-limit-warning a {
    color: #38bdf8 !important;
    text-decoration: underline;
    font-weight: 600;
}

[data-theme="light"] .file-limit-warning a {
    color: #0284c7 !important;
}

/* File Preview Card */
.file-preview-card {
    margin-top: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.1rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 10px;
}

[data-theme="light"] .file-preview-card {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.file-preview-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    overflow: hidden;
}

.file-preview-icon {
    font-size: 1.3rem;
    color: #38bdf8;
    flex-shrink: 0;
}

.file-preview-details {
    overflow: hidden;
}

.file-preview-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="light"] .file-preview-name {
    color: #0f172a;
}

.file-preview-size {
    font-size: 0.78rem;
    color: #94a3b8;
}

.file-remove-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.file-remove-btn:hover {
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.1);
}

/* Tech Stack Chips */
.tech-stack-segmented {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.tech-seg-btn {
    flex: 1;
    min-width: 140px;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.tech-seg-btn.active {
    background: rgba(56, 189, 248, 0.12);
    border-color: #38bdf8;
    color: #38bdf8;
}

[data-theme="light"] .tech-seg-btn {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
    font-weight: 600 !important;
}

[data-theme="light"] .tech-seg-btn.active {
    background: rgba(2, 132, 199, 0.1);
    border-color: #0284c7;
    color: #0284c7 !important;
    -webkit-text-fill-color: #0284c7 !important;
}

.tech-chips-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.5rem;
}

.tech-chip {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}

.tech-chip:hover {
    border-color: #38bdf8;
    color: #38bdf8;
}

.tech-chip.selected {
    background: #38bdf8;
    border-color: #38bdf8;
    color: #09090b;
    font-weight: 700;
}

[data-theme="light"] .tech-chip {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #475569;
}

[data-theme="light"] .tech-chip:hover {
    border-color: #0284c7;
    color: #0284c7;
}

[data-theme="light"] .tech-chip.selected {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
}

/* Submit Button & Footer text */
.submit-btn-wrapper {
    margin-top: 1rem;
}

.submit-btn-wrapper .btn-primary {
    width: 100%;
    padding: 0.95rem 2rem;
    font-size: 1rem;
    font-weight: 700;
}

/* Light Theme Button Visibility & High Contrast Overrides */
[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-primary *,
[data-theme="light"] .btn-primary span,
[data-theme="light"] .btn-primary i,
[data-theme="light"] #contactSubmitBtn,
[data-theme="light"] #contactSubmitBtn *,
[data-theme="light"] #contactSubmitBtn span,
[data-theme="light"] #contactSubmitBtn i {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

[data-theme="light"] .btn-primary,
[data-theme="light"] #contactSubmitBtn {
    background: #0f172a !important;
    border: 1px solid #1e293b !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.15) !important;
}

[data-theme="light"] .btn-primary:hover,
[data-theme="light"] .btn-primary:hover *,
[data-theme="light"] .btn-primary:hover span,
[data-theme="light"] .btn-primary:hover i,
[data-theme="light"] #contactSubmitBtn:hover,
[data-theme="light"] #contactSubmitBtn:hover *,
[data-theme="light"] #contactSubmitBtn:hover span,
[data-theme="light"] #contactSubmitBtn:hover i {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25) !important;
}

[data-theme="light"] .btn-outline,
[data-theme="light"] .btn-outline *,
[data-theme="light"] .btn-outline span,
[data-theme="light"] .btn-outline i,
[data-theme="light"] #copyDirectEmailBtn,
[data-theme="light"] #copyDirectEmailBtn *,
[data-theme="light"] #copyDirectEmailBtn span,
[data-theme="light"] #copyDirectEmailBtn i {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    font-weight: 600 !important;
}

[data-theme="light"] .btn-outline,
[data-theme="light"] #copyDirectEmailBtn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .btn-outline:hover,
[data-theme="light"] .btn-outline:hover *,
[data-theme="light"] .btn-outline:hover span,
[data-theme="light"] .btn-outline:hover i,
[data-theme="light"] #copyDirectEmailBtn:hover,
[data-theme="light"] #copyDirectEmailBtn:hover *,
[data-theme="light"] #copyDirectEmailBtn:hover span,
[data-theme="light"] #copyDirectEmailBtn:hover i {
    background: #f8fafc !important;
    border-color: #64748b !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* ==========================================================================
   Android & Mobile Responsiveness
   ========================================================================== */
@media (max-width: 991px) {
    .split-contact-section {
        padding: 5.5rem 1.5rem 4rem;
    }

    .split-contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .split-contact-left {
        position: static; /* Flow naturally on mobile */
        max-width: 100%;
    }

    .studio-title {
        font-size: 2.2rem;
    }

    .studio-desc {
        max-width: 100%;
    }

    .split-form-panel {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .split-contact-section {
        padding: 4.8rem 1rem 3rem;
    }

    .studio-title {
        font-size: 1.85rem;
        letter-spacing: -0.025em;
    }

    .studio-desc {
        font-size: 0.98rem;
        margin-bottom: 1.6rem;
    }

    .direct-email-card {
        padding: 1.3rem 1.25rem;
    }

    .direct-email-address {
        font-size: 1.05rem;
    }

    .split-form-panel {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

    .split-contact-right .contact-form {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .split-contact-right .form-group.full-width {
        grid-column: span 1;
    }

    /* Prevent mobile / Android font zoom on input focus */
    .split-contact-right .glass-input {
        font-size: 16px !important;
        padding: 0.8rem 0.95rem;
    }

    .submit-btn-wrapper .btn-primary {
        min-height: 48px;
    }
}

/* ── Form Validation & Character Counter Styles ── */
.split-contact-right .glass-input.input-error {
    border-color: #f43f5e !important;
    background: rgba(244, 63, 94, 0.06) !important;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.25) !important;
    animation: contactInputShake 0.4s ease-in-out;
}

[data-theme="light"] .split-contact-right .glass-input.input-error {
    border-color: #e11d48 !important;
    background: #fff1f2 !important;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.18) !important;
}

@keyframes contactInputShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.field-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    line-height: 1.4;
}

.field-hint {
    color: #94a3b8;
    font-size: 0.78rem;
}

[data-theme="light"] .field-hint {
    color: #64748b;
}

.char-counter {
    color: #94a3b8;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    margin-left: auto;
    white-space: nowrap;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

[data-theme="light"] .char-counter {
    color: #64748b;
}

.char-counter.warning {
    color: #f59e0b !important;
    font-weight: 600;
}

[data-theme="light"] .char-counter.warning {
    color: #d97706 !important;
}

.char-counter.danger {
    color: #f43f5e !important;
    font-weight: 700;
}

[data-theme="light"] .char-counter.danger {
    color: #e11d48 !important;
}
