/* ========================================
   EVERLYRIC - CUSTOM SONG FORM STYLES
   ======================================== */

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

.everlyric-body {
    color: #2c2c2c;
    background: #f5f1ed;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Main Container */
.everlyric-container {
    display: flex;
    min-height: 100vh;
}

/* ========================================
   LEFT PANEL - Brand & Decorative
   ======================================== */
.left-panel {
    width: 40%;
    background: linear-gradient(135deg, #afdfcf 0%, #afdfcf 100%);
    padding: 60px 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.brand-section {
    position: relative;
    z-index: 10;
    max-width: 400px;
    margin: 0 auto;
}

.multi-step-label {
    font-size: 14px;
    font-weight: 500;
    color: #6b5d52;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.brand-title {
    font-size: 56px;
    font-weight: 400;
    line-height: 1.1;
    color: #2c2c2c;
    font-family: "termina", Sans-serif;
    margin-bottom: 20px;
}

.brand-accent {
    color: #5a8a7a;
    font-weight: 500;
}

/* Decorative Image */
.decorative-image {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    height: auto;
    opacity: 0.9;
}

.decorative-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

/* ========================================
   RIGHT PANEL - Form Content
   ======================================== */
.right-panel {
    width: 60%;
    background: #fafaf8;
    padding: 40px 60px;
    overflow-y: auto;
    max-height: 100vh;
}

/* Progress Tracker */
.progress-tracker {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    flex-wrap: wrap;
    gap: 8px;
}

.progress-step {
    display: flex;
    align-items: center;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8e5e0;
    color: #8a8176;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: #5a8a7a;
    color: white;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(90, 138, 122, 0.3);
}

.progress-step.completed .step-circle {
    background: #b8d4ca;
    color: #5a8a7a;
}

.step-line {
    width: 24px;
    height: 2px;
    background: #e8e5e0;
    margin: 0 4px;
}

.progress-step.completed .step-line {
    background: #b8d4ca;
}

/* Form Content */
.form-content {
    max-width: 700px;
    margin: 0 auto;
}

.step-container {
    background: white;
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.step-title {
    font-size: 32px;
    font-weight: 500;
    color: #2c2c2c;
    margin-bottom: 12px;
    font-family: "termina", Sans-serif;
}

.step-subtitle {
    font-size: 16px;
    color: #6b5d52;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* ========================================
   INPUT STYLES
   ======================================== */

/* Input Group */
.input-group {
    margin-bottom: 28px;
}

.input-label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #4a4238;
    margin-bottom: 10px;
}

/* Text Inputs */
.text-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 2px solid #e8e5e0;
    border-radius: 10px;
    background: #fafaf8;
    color: #2c2c2c;
    transition: all 0.3s ease;
    font-family: "sigmund-pro", sans-serif;
}

.text-input:focus {
    outline: none;
    border-color: #5a8a7a;
    background: white;
    box-shadow: 0 0 0 4px rgba(90, 138, 122, 0.1);
}

.text-input::placeholder {
    color: #a39b8f;
}

/* Textarea */
.textarea-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 2px solid #e8e5e0;
    border-radius: 10px;
    background: #fafaf8;
    color: #2c2c2c;
    transition: all 0.3s ease;
    font-family: "sigmund-pro", sans-serif;
    resize: vertical;
    min-height: 100px;
}

.textarea-input:focus {
    outline: none;
    border-color: #5a8a7a;
    background: white;
    box-shadow: 0 0 0 4px rgba(90, 138, 122, 0.1);
}

/* Radio Options */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #fafaf8;
    border: 2px solid #e8e5e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.radio-option:hover {
    background: white;
    border-color: #d4c8b8;
    transform: translateX(4px);
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 14px;
    cursor: pointer;
    accent-color: #5a8a7a;
}

.radio-option input[type="radio"]:checked+span {
    color: #5a8a7a;
    font-weight: 600;
}

.radio-option input[type="radio"]:checked {
    background: #5a8a7a;
}

.radio-option span {
    font-size: 15px;
    color: #2c2c2c;
    flex: 1;
}

/* Checkbox Options */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #fafaf8;
    border: 2px solid #e8e5e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-option:hover:not(:has(input:disabled)) {
    background: white;
    border-color: #d4c8b8;
}

.checkbox-option:has(input:disabled) {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 14px;
    cursor: pointer;
    accent-color: #5a8a7a;
}

.checkbox-option input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.checkbox-option input[type="checkbox"]:checked+span {
    color: #5a8a7a;
    font-weight: 600;
}

.checkbox-option span {
    font-size: 15px;
    color: #2c2c2c;
    flex: 1;
}

/* Emotion Counter */
.emotion-counter {
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    background: #e8f5f1;
    color: #5a8a7a;
    border-radius: 8px;
    margin-bottom: 16px;
    display: inline-block;
}

.emotion-counter .text-danger {
    color: #c33;
    background: #fee;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Addon Options (with subtle premium feel) */
.addon-option {
    border-left: 4px solid transparent;
}

.addon-option input[type="checkbox"]:checked {
    border-left-color: #5a8a7a;
}

/* ========================================
   BUTTONS
   ======================================== */
.button-group {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "sigmund-pro", sans-serif;
}

.btn-primary {
    background: #5a8a7a;
    color: white;
    box-shadow: 0 4px 12px rgba(90, 138, 122, 0.2);
}

.btn-primary:hover:not(:disabled) {
    background: #4a7a6a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(90, 138, 122, 0.3);
}

.btn-primary:disabled {
    background: #a39b8f;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    background: transparent;
    color: #6b5d52;
    border: 2px solid #e8e5e0;
}

.btn-secondary:hover {
    background: #fafaf8;
    border-color: #d4c8b8;
}

/* ========================================
   VALIDATION STYLES
   ======================================== */
.validation-error {
    background: #fee;
    border-left: 4px solid #c33;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    animation: slideInDown 0.3s ease;
}

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

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

.validation-error-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #c33;
    font-size: 15px;
    font-weight: 500;
}

.validation-error-content svg {
    flex-shrink: 0;
}

.validation-error-content span {
    line-height: 1.4;
}

/* Input validation states */
.text-input.error,
.textarea-input.error {
    border-color: #c33;
    background: #fff5f5;
}

.text-input.error:focus,
.textarea-input.error:focus {
    border-color: #c33;
    box-shadow: 0 0 0 4px rgba(204, 51, 51, 0.1);
}

/* ========================================
   FINAL MESSAGE
   ======================================== */
.final-message {
    text-align: center;
    padding: 40px 20px;
}

.final-text {
    font-size: 18px;
    color: #6b5d52;
    margin: 20px 0;
    line-height: 1.7;
}

.final-tagline {
    font-size: 20px;
    font-weight: 500;
    color: #5a8a7a;
    margin: 30px 0 20px;
    font-style: italic;
}

.brand-signature {
    font-size: 16px;
    color: #8a8176;
    font-family: "termina", Sans-serif;
    margin-top: 30px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .everlyric-container {
        flex-direction: column;
    }

    .left-panel,
    .right-panel {
        width: 100%;
    }

    .left-panel {
        min-height: 300px;
        padding: 40px 30px;
    }

    .brand-title {
        font-size: 42px;
    }

    .right-panel {
        padding: 30px 20px;
        max-height: none;
    }

    .progress-tracker {
        padding: 15px;
        margin-bottom: 30px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .step-line {
        width: 16px;
    }
}

@media (max-width: 768px) {
    .left-panel {
        padding: 30px 20px;
    }

    .brand-title {
        font-size: 36px;
    }

    .step-container {
        padding: 30px 20px;
    }

    .step-title {
        font-size: 26px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .progress-tracker {
        gap: 4px;
    }

    .step-circle {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .step-line {
        width: 12px;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 28px;
    }

    .step-title {
        font-size: 22px;
    }

    .radio-option,
    .checkbox-option {
        padding: 12px 16px;
    }

    .text-input,
    .textarea-input {
        padding: 12px 14px;
        font-size: 14px;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
[x-cloak] {
    display: none !important;
}

/* Custom scrollbar for right panel */
.right-panel::-webkit-scrollbar {
    width: 8px;
}

.right-panel::-webkit-scrollbar-track {
    background: #f5f1ed;
}

.right-panel::-webkit-scrollbar-thumb {
    background: #d4c8b8;
    border-radius: 4px;
}

.right-panel::-webkit-scrollbar-thumb:hover {
    background: #c9bfae;
}

/* Smooth transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

input,
textarea,
button {
    transition-duration: 0.2s;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #5a8a7a;
    outline-offset: 2px;
}

input[type=checkbox]:checked:before,
input[type=radio]:checked:before {
    line-height: 18px !important;
}