/* =========================================================
   Pixel Voice Contact Form
   ========================================================= */

:root {
    --pv-bg: #08111f;
    --pv-panel: rgba(11, 25, 45, 0.88);
    --pv-panel-soft: rgba(255, 255, 255, 0.04);
    --pv-border: rgba(255, 255, 255, 0.10);

    --pv-text: #ffffff;
    --pv-muted: #9eb0c8;

    --pv-blue: #00a8ff;
    --pv-blue-dark: #0078d4;
    --pv-cyan: #3ddcff;

    --pv-success: #31d17c;
    --pv-error: #ff6b6b;

    --pv-radius-lg: 26px;
    --pv-radius-md: 16px;
    --pv-radius-sm: 12px;
}


/* =========================================================
   Outer shell
   ========================================================= */

.pv-contact-shell {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 54px;
    overflow: hidden;

    background:
        radial-gradient(
            circle at top right,
            rgba(0, 168, 255, 0.16),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(61, 220, 255, 0.08),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            rgba(8, 17, 31, 0.98),
            rgba(10, 24, 44, 0.96)
        );

    border: 1px solid var(--pv-border);
    border-radius: var(--pv-radius-lg);

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    color: var(--pv-text);
}


/* subtle background glow */

.pv-contact-shell::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    top: -180px;
    right: -120px;

    border-radius: 50%;
    background: rgba(0, 168, 255, 0.16);
    filter: blur(80px);

    pointer-events: none;
}


/* =========================================================
   Header
   ========================================================= */

.pv-contact-header {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin-bottom: 42px;
}

.pv-contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 12px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;

    color: var(--pv-cyan);
}

.pv-contact-eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;

    background: linear-gradient(
        90deg,
        var(--pv-blue),
        var(--pv-cyan)
    );

    border-radius: 999px;
}

.pv-contact-header h2 {
    margin: 0 0 14px;

    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-weight: 750;

    color: var(--pv-text);
}

.pv-contact-header p {
    max-width: 620px;
    margin: 0;

    font-size: 17px;
    line-height: 1.7;

    color: var(--pv-muted);
}


/* =========================================================
   Form
   ========================================================= */

.pv-contact-form {
    position: relative;
    z-index: 1;
}

.pv-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

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

.pv-field-full {
    margin-top: 32px;
}

.pv-field label {
    margin-bottom: 9px;

    font-size: 14px;
    font-weight: 600;

    color: #edf5ff;
}

.pv-field label span {
    color: var(--pv-cyan);
}


/* =========================================================
   Inputs
   ========================================================= */

.pv-field input,
.pv-field textarea {
    width: 100%;

    padding: 15px 17px;

    color: var(--pv-text);
    background: rgba(255, 255, 255, 0.045);

    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--pv-radius-sm);

    outline: none;

    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.pv-field textarea {
    min-height: 150px;
    resize: vertical;
}

.pv-field input::placeholder,
.pv-field textarea::placeholder {
    color: #71839a;
}

.pv-field input:hover,
.pv-field textarea:hover {
    border-color: rgba(61, 220, 255, 0.25);
}

.pv-field input:focus,
.pv-field textarea:focus {
    border-color: rgba(0, 168, 255, 0.85);

    background: rgba(255, 255, 255, 0.065);

    box-shadow:
        0 0 0 4px rgba(0, 168, 255, 0.09),
        0 8px 25px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   Service selection
   ========================================================= */

.pv-service-section {
    margin-top: 40px;
}

.pv-section-heading {
    margin-bottom: 18px;
}

.pv-section-heading > span {
    display: block;
    margin-bottom: 6px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;

    color: var(--pv-cyan);
}

.pv-section-heading h3 {
    margin: 0;

    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.02em;

    color: var(--pv-text);
}

.pv-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pv-service-card {
    position: relative;

    display: flex;
    align-items: center;
    gap: 15px;

    width: 100%;
    min-height: 104px;
    padding: 18px;

    text-align: left;

    color: var(--pv-text);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.025)
        );

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--pv-radius-md);

    cursor: pointer;

    appearance: none;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.pv-service-card:hover {
    transform: translateY(-2px);

    border-color: rgba(0, 168, 255, 0.38);

    background:
        linear-gradient(
            145deg,
            rgba(0, 168, 255, 0.10),
            rgba(255, 255, 255, 0.035)
        );

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.pv-service-card.is-selected {
    border-color: rgba(61, 220, 255, 0.75);

    background:
        linear-gradient(
            145deg,
            rgba(0, 168, 255, 0.18),
            rgba(0, 120, 212, 0.08)
        );

    box-shadow:
        0 0 0 3px rgba(0, 168, 255, 0.08),
        0 12px 30px rgba(0, 0, 0, 0.18);
}


/* Service icon */

.pv-service-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    font-size: 22px;
    font-weight: 600;

    color: var(--pv-cyan);

    background: rgba(0, 168, 255, 0.10);

    border: 1px solid rgba(0, 168, 255, 0.20);
    border-radius: 13px;
}


/* Service copy */

.pv-service-copy {
    display: flex;
    flex-direction: column;
    gap: 5px;

    min-width: 0;
}

.pv-service-copy strong {
    font-size: 16px;
    font-weight: 700;

    color: var(--pv-text);
}

.pv-service-copy small {
    font-size: 13px;
    line-height: 1.45;

    color: var(--pv-muted);
}


/* selection check */

.pv-service-check {
    position: absolute;
    top: 12px;
    right: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 23px;
    height: 23px;

    opacity: 0;
    transform: scale(0.75);

    color: #06131f;
    background: var(--pv-cyan);

    border-radius: 50%;

    font-size: 13px;
    font-weight: 800;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.pv-service-card.is-selected .pv-service-check {
    opacity: 1;
    transform: scale(1);
}


/* =========================================================
   Dynamic fields
   ========================================================= */

.pv-dynamic-fields {
    margin-top: 22px;
    padding: 22px;

    background: rgba(0, 168, 255, 0.045);

    border: 1px solid rgba(0, 168, 255, 0.14);
    border-radius: var(--pv-radius-md);

    animation: pvFadeUp 0.28s ease;
}

.pv-dynamic-fields[hidden] {
    display: none !important;
}

.pv-dynamic-question {
    margin-bottom: 20px;
}

.pv-dynamic-question:last-child {
    margin-bottom: 0;
}

.pv-dynamic-label {
    display: block;
    margin-bottom: 11px;

    font-size: 14px;
    font-weight: 600;

    color: #edf5ff;
}

.pv-option-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.pv-option-button {
    padding: 10px 15px;

    color: #dce8f6;

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;

    cursor: pointer;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.pv-option-button:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 168, 255, 0.40);
}

.pv-option-button.is-selected {
    color: #07121e;
    background: var(--pv-cyan);
    border-color: var(--pv-cyan);
}


/* =========================================================
   Errors
   ========================================================= */

.pv-field-error {
    display: block;
    min-height: 16px;
    margin-top: 6px;

    color: var(--pv-error);

    font-size: 12px;
    line-height: 1.4;
}

.pv-field.has-error input,
.pv-field.has-error textarea {
    border-color: rgba(255, 107, 107, 0.72);

    box-shadow:
        0 0 0 3px rgba(255, 107, 107, 0.06);
}


/* =========================================================
   Form response message
   ========================================================= */

.pv-form-message {
    display: none;

    margin-top: 22px;
    padding: 13px 15px;

    border-radius: 12px;

    font-size: 14px;
    line-height: 1.5;
}

.pv-form-message.is-error {
    display: block;

    color: #ffd5d5;
    background: rgba(255, 107, 107, 0.08);

    border: 1px solid rgba(255, 107, 107, 0.20);
}

.pv-form-message.is-success {
    display: block;

    color: #d6ffe8;
    background: rgba(49, 209, 124, 0.08);

    border: 1px solid rgba(49, 209, 124, 0.20);
}


/* =========================================================
   Submit area
   ========================================================= */

.pv-submit-row {
    display: flex;
    align-items: center;
    gap: 20px;

    margin-top: 26px;
}

.pv-submit-button {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-width: 190px;
    min-height: 52px;

    padding: 14px 22px;

    overflow: hidden;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--pv-blue),
            var(--pv-blue-dark)
        );

    border: 0;
    border-radius: 13px;

    cursor: pointer;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;

    box-shadow:
        0 10px 28px rgba(0, 168, 255, 0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.pv-submit-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 34px rgba(0, 168, 255, 0.28);
}

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

.pv-submit-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.pv-submit-arrow {
    font-size: 20px;

    transition: transform 0.2s ease;
}

.pv-submit-button:hover .pv-submit-arrow {
    transform: translateX(4px);
}


/* loader */

.pv-submit-loader {
    display: none;

    width: 17px;
    height: 17px;

    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;

    animation: pvSpin 0.75s linear infinite;
}

.pv-submit-button.is-loading .pv-submit-arrow {
    display: none;
}

.pv-submit-button.is-loading .pv-submit-loader {
    display: inline-block;
}

.pv-privacy-note {
    margin: 0;

    max-width: 330px;

    color: #7f91a8;

    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   Honeypot
   ========================================================= */

.pv-honeypot {
    position: absolute !important;

    left: -9999px !important;
    top: auto !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;

    opacity: 0 !important;
    pointer-events: none !important;
}


/* =========================================================
   Success state
   ========================================================= */

.pv-success-state {
    position: relative;
    z-index: 1;

    max-width: 650px;

    padding: 35px 0;

    animation: pvFadeUp 0.4s ease;
}

.pv-success-state[hidden] {
    display: none !important;
}

.pv-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;

    margin-bottom: 22px;

    color: #06140d;
    background: var(--pv-success);

    border-radius: 50%;

    font-size: 28px;
    font-weight: 800;

    box-shadow:
        0 12px 35px rgba(49, 209, 124, 0.20);
}

.pv-success-state h3 {
    margin: 4px 0 10px;

    color: var(--pv-text);

    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.pv-success-state p {
    margin: 0;

    max-width: 560px;

    color: var(--pv-muted);

    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   Animations
   ========================================================= */

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

@keyframes pvFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 820px) {

    .pv-contact-shell {
        padding: 38px 30px;
    }

    .pv-contact-header {
        margin-bottom: 32px;
    }

    .pv-form-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .pv-service-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 520px) {

    .pv-contact-shell {
        padding: 28px 18px;

        border-radius: 20px;
    }

    .pv-contact-header h2 {
        font-size: 34px;
    }

    .pv-contact-header p {
        font-size: 15px;
    }

    .pv-service-card {
        min-height: 95px;
        padding: 15px;
    }

    .pv-service-icon {
        width: 44px;
        height: 44px;

        flex-basis: 44px;
    }

    .pv-dynamic-fields {
        padding: 17px;
    }

    .pv-submit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .pv-submit-button {
        width: 100%;
    }

    .pv-privacy-note {
        max-width: none;
        text-align: center;
    }

}


/* =========================================================
   Reduced motion accessibility
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .pv-service-card,
    .pv-option-button,
    .pv-submit-button,
    .pv-submit-arrow,
    .pv-submit-loader,
    .pv-dynamic-fields,
    .pv-success-state {
        animation: none !important;
        transition: none !important;
    }

}