:root {
    --warm-dark: #2d241e;
    --warm-ink: #1a1310;
    --warm-cream: #fbf9f6;
    --warm-sand: #f4ede0;
    --warm-parchment: #ede4d4;
    --gold: #c9a84c;
    --gold-light: #e3cb76;
    --champagne: #decfaa;
    --clay: #b65a3f;
    --clay-light: #c9705a;
    --muted: #9e8e7e;
    --ink-soft: #5c524f;
    --border-warm: rgba(182, 90, 63, 0.12);
    --border-gold: rgba(201, 168, 76, 0.15);
    --shadow-soft: 0 10px 30px rgba(45, 36, 30, 0.03);
    --shadow-hover: 0 20px 45px rgba(45, 36, 30, 0.08);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
.create-your-own-section {
    background-color: var(--warm-cream);
    padding-top: clamp(60px, 8vw, 100px);
    padding-bottom: clamp(60px, 8vw, 100px);
}

.step-card {
    background: #ffffff;
    border: 1px solid var(--border-warm);
    border-radius: 16px;
    padding: clamp(24px, 4vw, 40px);
    box-shadow: var(--shadow-soft);
    margin-bottom: 35px;
    transition: var(--transition-smooth);
}

.step-card:hover {
    box-shadow: var(--shadow-hover);
}

.step-title-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-warm);
    padding-bottom: 15px;
}

.step-number {
    width: 38px;
    height: 38px;
    background: var(--clay);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.step-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 26px;
    font-weight: 400;
    color: var(--warm-dark);
    margin: 0;
}

/* Step 1: Premium Layout & Design */
.step-header-container {
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-warm);
    padding-bottom: 24px;
}

.step-badge {
    display: inline-block;
    background: rgba(182, 90, 63, 0.08);
    color: var(--clay);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 12px;
    border: 1px solid rgba(182, 90, 63, 0.15);
}

.step-section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 500;
    color: var(--warm-dark);
    margin: 0 0 8px 0;
    line-height: 1.25;
}

.step-section-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14.5px;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

.instrument-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 10px;
}

@media (min-width: 576px) {
    .instrument-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .instrument-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.instrument-select-card {
    position: relative;
    border: 1.5px solid var(--border-warm);
    border-radius: 16px;
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    user-select: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 18px rgba(45, 36, 30, 0.02);
}

@media (hover: hover) and (min-width: 992px) {
    .instrument-select-card:hover {
        transform: translateY(-6px);
        border-color: var(--gold);
        box-shadow: 0 12px 28px rgba(45, 36, 30, 0.06);
    }
    .instrument-select-card:hover .instrument-img {
        transform: scale(1.05);
    }
}

.instrument-select-card.selected {
    border-color: var(--clay);
    border-width: 2px;
    background: rgba(182, 90, 63, 0.01);
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(182, 90, 63, 0.08);
}

@media (hover: hover) and (min-width: 992px) {
    .instrument-select-card.selected:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 16px 36px rgba(182, 90, 63, 0.12);
        border-color: var(--clay);
    }
}

.instrument-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--warm-cream);
    border-bottom: 1.5px solid var(--border-warm);
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.instrument-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.instrument-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 19, 16, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 11px;
    color: transparent;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3;
}

.instrument-select-card.selected .instrument-badge {
    border-color: var(--clay);
    background: var(--clay);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(182, 90, 63, 0.3);
}

.instrument-card-content {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 16px;
    background: #ffffff;
}

.instrument-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 600;
    color: var(--warm-dark);
    margin: 0;
    line-height: 1.25;
    transition: color 0.3s ease;
}

.instrument-select-card.selected .instrument-name {
    color: var(--clay);
}

.instrument-price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.instrument-price-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.instrument-price-display {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--clay);
    margin-top: 0;
}

.instrument-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    border-top: 1px dashed var(--border-warm);
    padding-top: 12px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--muted);
    transition: all 0.3s ease;
}

.instrument-select-card:hover .status-dot {
    background: var(--gold);
    box-shadow: 0 0 6px rgba(201, 168, 76, 0.4);
}

.instrument-select-card.selected .status-dot {
    background: var(--clay);
    box-shadow: 0 0 8px rgba(182, 90, 63, 0.6);
}

.status-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    transition: color 0.3s ease;
}

.status-text::after {
    content: "Select";
}

.instrument-select-card:hover .status-text {
    color: var(--warm-dark);
}

.instrument-select-card.selected .status-text {
    color: var(--clay);
}

.instrument-select-card.selected .status-text::after {
    content: "Selected";
}

/* Step 2: Vision & Step 4: Ideas textareas */
.form-floating-custom {
    position: relative;
    margin-bottom: 12px;
}

.form-floating-custom input, 
.form-floating-custom textarea {
    width: 100%;
    height: 54px;
    padding: 20px 16px 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14.5px;
    color: var(--warm-dark);
    background: var(--warm-cream);
    border: 1px solid var(--border-warm);
    border-radius: 8px;
    outline: none;
    transition: var(--transition-smooth);
}

.form-floating-custom textarea {
    height: 140px;
    padding: 24px 16px 10px;
    resize: none;
}

.form-floating-custom label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14.5px;
    color: var(--muted);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.form-floating-custom textarea ~ label {
    top: 20px;
    transform: none;
}

.form-floating-custom input:focus ~ label,
.form-floating-custom input:not(:placeholder-shown) ~ label,
.form-floating-custom textarea:focus ~ label,
.form-floating-custom textarea:not(:placeholder-shown) ~ label {
    top: 8px;
    transform: none;
    font-size: 10px;
    font-weight: 700;
    color: var(--clay);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-floating-custom input:focus, 
.form-floating-custom textarea:focus {
    border-color: var(--gold);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.08);
}

/* Character Counter */
.char-counter {
    text-align: right;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 500;
    margin-top: 5px;
}

.char-counter.warning {
    color: var(--clay);
    font-weight: 600;
}

/* Step 3: Personalisation list */
.personalisation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.personalisation-checkbox-card {
    position: relative;
    border: 1px solid var(--border-warm);
    border-radius: 8px;
    background: var(--warm-cream);
    padding: 14px 18px;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.personalisation-checkbox-card:hover {
    border-color: var(--gold);
    background: #ffffff;
}

.personalisation-checkbox-card.checked {
    border-color: var(--clay);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(182, 90, 63, 0.05);
}

.personalisation-checkbox-card input[type="checkbox"] {
    accent-color: var(--clay);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.personalisation-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--warm-dark);
    margin: 0;
}

/* Dynamic fields wrapper */
.personalisation-fields-container {
    border-top: 1px dotted var(--border-warm);
    padding-top: 20px;
    margin-top: 20px;
}

.personalisation-field-row {
    display: none;
    margin-bottom: 20px;
    animation: fade-in-field 0.3s ease-out forwards;
}

@keyframes fade-in-field {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Step 4: Upload refs */
.upload-dropzone {
    border: 2px dashed var(--border-warm);
    border-radius: 12px;
    background: var(--warm-cream);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-bottom: 20px;
}

.upload-dropzone:hover {
    border-color: var(--gold);
    background: #ffffff;
}

.upload-icon {
    font-size: 32px;
    color: var(--clay);
    margin-bottom: 12px;
}

.upload-text-main {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--warm-dark);
    margin-bottom: 4px;
}

.upload-text-sub {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}

/* File previews */
.upload-previews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 15px;
}

.file-preview-pill {
    position: relative;
    border: 1px solid var(--border-warm);
    border-radius: 8px;
    background: #ffffff;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.file-preview-thumb {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
    margin-bottom: 6px;
    background: var(--warm-cream);
}

.file-preview-icon {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    background: var(--warm-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--muted);
    margin-bottom: 6px;
}

.file-preview-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    color: var(--warm-dark);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.file-preview-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--clay);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 1px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: var(--transition-smooth);
}

.file-preview-remove:hover {
    background: var(--warm-dark);
}

/* Suggested Visual Content */
.visuals-section {
    background-color: #ffffff;
    padding-top: clamp(60px, 8vw, 100px);
    padding-bottom: clamp(60px, 8vw, 100px);
    border-top: 1px solid var(--border-warm);
    border-bottom: 1px solid var(--border-warm);
}

.visuals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 767px) {
    .visuals-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.visual-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-warm);
    aspect-ratio: 16 / 10;
    transition: var(--transition-smooth);
}

.visual-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.visual-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.visual-item:hover img {
    transform: scale(1.04);
}

.visual-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(to top, rgba(28, 22, 19, 0.9) 20%, rgba(28, 22, 19, 0.4) 70%, transparent);
    color: #ffffff;
}

.visual-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 6px;
}

.visual-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 300;
}

/* Call to action & button styles */
.submit-btn-custom {
    width: 100%;
    height: 52px;
    background: var(--warm-dark);
    color: #ffffff;
    border: 1px solid var(--warm-dark);
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    outline: none;
}

.submit-btn-custom:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #1a1310;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.2);
}

.submit-btn-custom .btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: btn-spin 0.8s linear infinite;
}

.submit-btn-custom.loading {
    pointer-events: none;
    background: var(--muted) !important;
    border-color: var(--muted) !important;
}

.submit-btn-custom.loading .btn-spinner {
    display: inline-block;
}

.submit-btn-custom.loading .btn-text {
    display: none;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* Success Banner style */
.custom-success-alert {
    display: none;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.18);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 35px;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow-soft);
}

.custom-success-alert.show {
    display: flex;
    animation: slide-down-alert 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.custom-success-icon {
    color: #25d366;
    font-size: 26px;
    flex-shrink: 0;
}

.custom-success-text-wrap {
    display: flex;
    flex-direction: column;
}

.custom-success-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    color: #128c7e;
    font-weight: 500;
    margin-bottom: 4px;
}

.custom-success-message {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: #128c7e;
    font-weight: 400;
    line-height: 1.5;
}

@keyframes slide-down-alert {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Validation errors style */
.form-floating-custom.has-error input, 
.form-floating-custom.has-error textarea {
    border-color: var(--clay) !important;
    background: rgba(182, 90, 63, 0.02) !important;
}

.form-floating-custom.has-error label {
    color: var(--clay) !important;
}

.form-error-msg {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    color: var(--clay);
    margin-top: 5px;
    display: none;
    font-weight: 500;
}

.form-floating-custom.has-error .form-error-msg {
    display: block;
}

/* Wizard Steps Visibility */
.wizard-step {
    display: none;
}
.wizard-step.active-step {
    display: block;
}

/* Wizard Navigation Buttons */
.wizard-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--border-warm);
}

.wizard-prev-btn {
    height: 52px;
    background: transparent;
    color: var(--warm-dark);
    border: 1px solid var(--warm-dark);
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: none;
    user-select: none;
}

.wizard-prev-btn:hover {
    background: var(--warm-dark);
    color: #ffffff;
}

.wizard-next-btn {
    height: 52px;
    background: var(--warm-dark);
    color: #ffffff;
    border: 1px solid var(--warm-dark);
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: none;
    user-select: none;
}

.wizard-next-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #1a1310;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.2);
}

/* Progress Indicator styling */
.wizard-progress-bar-container {
    max-width: 750px;
    margin: 0 auto 40px;
    padding: 0 10px;
}

.wizard-progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.wizard-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    user-select: none;
}

.wizard-progress-step .step-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--border-warm);
    color: var(--muted);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.wizard-progress-step .step-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 8px;
    transition: var(--transition-smooth);
    text-align: center;
}

.wizard-progress-line {
    height: 2px;
    background: var(--border-warm);
    flex-grow: 1;
    margin: 0 10px;
    margin-top: -20px;
    position: relative;
    z-index: 1;
    transition: var(--transition-smooth);
}

/* Active & Completed States */
.wizard-progress-step.active .step-icon {
    border-color: var(--clay);
    background: var(--clay);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(182, 90, 63, 0.15);
}

.wizard-progress-step.active .step-label {
    color: var(--clay);
    font-weight: 700;
}

.wizard-progress-step.completed .step-icon {
    border-color: #25d366;
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.1);
}

.wizard-progress-step.completed .step-label {
    color: #25d366;
}

.wizard-progress-line.filled {
    background: var(--clay);
}

.wizard-progress-line.completed {
    background: #25d366;
}

@media (max-width: 600px) {
    .wizard-progress-step .step-label {
        font-size: 9px;
        letter-spacing: 0.02em;
    }
    .wizard-progress-step .step-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .wizard-progress-line {
        margin-top: -16px;
    }
    .wizard-nav-buttons button {
        padding: 0 25px;
        font-size: 12px;
        height: 48px;
    }
}

@media (max-width: 575px) {
    .instrument-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .instrument-card-content {
        padding: 12px 10px 14px;
        gap: 8px;
    }
    .instrument-name {
        font-size: 15px;
    }
    .instrument-badge {
        top: 8px;
        right: 8px;
        width: 22px;
        height: 22px;
        font-size: 8px;
    }
}

