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

:root {
    --color-bone: #ebe6dc;
    --color-off-black: #171615;
    --color-pure-black: #000000;
    --color-white: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.5);
    --color-border: rgba(255, 255, 255, 0.15);
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bone);
    color: var(--color-off-black);
    min-height: 100vh;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

/* =========================================
   Layout
   ========================================= */
.page-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Panel */
.left-panel {
    flex: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10vw 8vw;
    background-color: var(--color-bone);
    z-index: 1;
}

.bg-texture {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    mix-blend-mode: multiply;
    z-index: -1;
    pointer-events: none;
}

.left-content {
    max-width: 800px;
}

.main-headline {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 400;
    font-style: italic;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--color-pure-black);
    margin-bottom: 2rem;
}

.studio-meta {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    color: var(--color-off-black);
    opacity: 0.7;
    margin-top: 4rem;
}

/* Right Panel */
.right-panel {
    flex: 1;
    min-width: 480px;
    background-color: var(--color-off-black);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    padding: 4rem 3rem 2rem 3rem;
}

.right-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

/* =========================================
   Form Elements
   ========================================= */
.form-group {
    position: relative;
    margin-bottom: 2.25rem;
}

/* Floating Labels */
.input-field {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-white);
    padding: 1.5rem 0 0.5rem 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    outline: none;
    transition: border-color 0.3s ease;
    border-radius: 0;
}

.input-field:focus {
    border-color: rgba(255, 255, 255, 0.6);
}

.form-group label {
    position: absolute;
    top: 1.2rem;
    left: 0;
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.1, 0.5, 0.1, 1);
}

.input-field:focus ~ label,
.input-field:not(:placeholder-shown) ~ label,
.select-field:focus ~ label,
.select-field:valid ~ label {
    top: -0.2rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-white);
    opacity: 0.8;
}

/* Select specific */
.select-field {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='rgba(255,255,255,0.5)' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}
.select-field option {
    background-color: var(--color-off-black);
    color: var(--color-white);
}

/* Textarea specific */
.textarea-field {
    resize: none;
    line-height: 1.5;
}

/* Slider / Range */
.slider-group {
    margin-top: 1rem;
    margin-bottom: 3rem;
}
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}
.slider-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}
.slider-value {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1;
}

.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 1px;
    background: var(--color-border);
    outline: none;
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-white);
    cursor: pointer;
    transition: transform 0.1s;
}
.range-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 50%;
    background: var(--color-white);
    cursor: pointer;
    transition: transform 0.1s;
}
.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

/* Radio Buttons */
.radio-group-container {
    margin-bottom: 3rem;
}
.radio-group-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}
.radio-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.custom-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.custom-radio input {
    display: none;
}
.radio-mark {
    width: 16px;
    height: 16px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    margin-right: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
}
.custom-radio input:checked + .radio-mark {
    border-color: var(--color-white);
}
.custom-radio input:checked + .radio-mark::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-white);
    border-radius: 50%;
}
.radio-text {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--color-text-muted);
    transition: color 0.2s;
}
.custom-radio input:checked ~ .radio-text {
    color: var(--color-white);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    background-color: var(--color-pure-black);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 1.25rem;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.1, 0.5, 0.1, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn-submit:hover {
    background-color: var(--color-white);
    color: var(--color-pure-black);
    transform: translateY(-2px);
}
.btn-submit.loading {
    opacity: 0.7;
    pointer-events: none;
}

.tiny-text-right {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 1.5rem;
}

.error-msg {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 0.8rem;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
}

/* =========================================
   Success & Status States
   ========================================= */
.success-content, #status-message {
    text-align: center;
    padding: 2rem 0;
}
.success-icon {
    width: 48px;
    height: 48px;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}
.success-title, .status-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 1rem;
}
.success-text, #status-text {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* =========================================
   SDK Overrides
   ========================================= */
#wbx-powered-by-slot {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    opacity: 0.5;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
    .page-wrapper {
        flex-direction: column;
    }
    .left-panel {
        flex: none;
        padding: 5rem 2rem 4rem 2rem;
        min-height: 40vh;
    }
    .main-headline {
        font-size: clamp(3rem, 10vw, 4.5rem);
    }
    .right-panel {
        flex: none;
        padding: 4rem 2rem 3rem 2rem;
        min-width: 0;
    }
}
