/* create-journey.css */

/* --- GLOBAL PAGE LAYOUT --- */
.create-journey-page {
    background-color: var(--bg-color);
    min-height: 100vh;
    padding-top: 0; /* Header overlaps hero */
}

/* Ensure step container handles layout properly */
.journey-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    gap: 40px; /* Space between steps and sidebar */
    position: relative;
    /* transition: all 0.25s ease; */ /* Global transition rule */
}

.journey-content-area {
    flex: 1;
    min-width: 0; /* Prevent flex overflow */
    position: relative;
}

.journey-steps-wrapper {
    position: relative;
    overflow: hidden; /* Hide sliding steps */
    min-height: 600px; /* Base height to prevent bouncing */
}

/* Step section spacing */
.journey-step {
    padding-top: 5px;
    padding-bottom: 60px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%); /* Slide right out by default */
    transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Step Transitions (Slide Animation) */
.journey-step.active-step {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 2;
}

.journey-step.slide-left {
    transform: translateX(-100%);
    opacity: 0;
}

.journey-step.slide-right {
    transform: translateX(100%);
    opacity: 0;
}

/* --- HERO SECTION --- */
.journey-hero {
    min-height: 45vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Account for header */
}

.journey-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* Aspect ratio 4096x2048 roughly 2:1 is handled by cover */
    z-index: 0;
}

.journey-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.25));
    z-index: 1;
}

.journey-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 0 20px;
    color: #fff;
}

.journey-title {
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
}

.journey-subtitle {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 40px;
    color: #fff;
}

.journey-start-btn {
    height: 48px;
    padding: 0 28px;
    border-radius: 6px;
    font-size: 14px;
    letter-spacing: 0.08em;
    background: var(--accent-color);
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.journey-start-btn:hover {
    background: #a88960; /* Slightly darker */
    transform: translateY(-2px);
}


/* --- PROGRESS INDICATOR --- */
.journey-progress-bar {
    width: calc(100% - 40px);
    max-width: 900px;
    height: 80px;
    background: #fff;
    border-radius: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    margin: -40px auto 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 100;
}

/* Ensure progress stays below fixed header (header is usually ~80px) */
/* Can adjust padding on scroll if needed */
.progress-container {
    display: flex;
    align-items: center;
    max-width: 1100px;
    width: 100%;
    padding: 0 20px;
    justify-content: center; /* Center steps */
    overflow-x: auto; /* scroll on mobile */
}

/* Hide scrollbar for progress bar */
.progress-container::-webkit-scrollbar { display: none; }
.progress-container { -ms-overflow-style: none; scrollbar-width: none; }


.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    opacity: 0.4;
    transition: all 0.35s ease;
}

.progress-step.active, .progress-step.completed {
    opacity: 1;
}

.step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e6e2dd;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-body);
    margin-bottom: 4px;
    transition: all 0.35s ease;
}

.progress-step.active .step-circle, .progress-step.completed .step-circle {
    background: #c7a97f;
    color: #fff;
}

.step-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-body);
}

.progress-line {
    width: 120px; /* Spacing between steps */
    height: 2px;
    background: #e6e2dd;
    margin: 0 10px;
    transform: translateY(-8px); /* align with circles */
    transition: background 0.35s ease;
}

.progress-line.active {
    background: #c7a97f;
}


/* --- SHARED STEP STYLES & CARDS --- */
.step-heading {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.sub-heading {
    font-size: 20px;
    margin-bottom: 16px;
    font-weight: 400;
}

.mt-medium {
    margin-top: 30px;
}

.options-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
}

.option-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.04);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.option-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.4s ease;
    pointer-events: none;
}

.option-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.option-card.selected {
    background: rgba(199,169,127,0.05); /* very soft gold */
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(199,169,127,0.15);
}

.option-card.selected::after {
    border-color: #c7a97f;
}

.option-card h3 {
    font-size: 18px;
    margin: 0;
    font-family: var(--font-heading);
}

.card-img-placeholder {
    width: 100%;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    margin-bottom: 16px;
}

/* --- STEP SPECIFIC SIZES --- */
/* Step 1 */
.creation-grid .option-card {
    height: 220px;
}

.creation-grid .card-img-placeholder {
    height: 120px;
}

/* Step 2 */
.story-grid {
    gap: 20px;
}
.story-grid .option-card {
    height: 120px;
    padding: 18px;
    justify-content: center; /* Center text vertically */
}

/* Step 3 */
.style-grid .option-card {
    height: 200px;
}
.style-grid .card-img-placeholder {
    height: 120px;
}
.style-grid .option-card:hover .card-img-placeholder {
    transform: scale(1.02);
    transition: transform 0.25s ease;
}

/* Step 4 */
.format-grid .format-card {
    height: 100px;
    justify-content: center;
}

.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pill-btn {
    height: 36px;
    padding: 0 16px;
    border-radius: 30px;
    border: 1px solid #e6e2dd;
    background: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pill-btn:hover {
    border-color: #c7a97f;
}

.pill-btn.selected {
    background: #c7a97f;
    color: #fff;
    border-color: #c7a97f;
}


/* --- FORMS & INPUTS --- */
.journey-input, .journey-textarea {
    width: 100%;
    border: 1px solid #e6e2dd;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 15px;
    background: #fff;
    transition: border-color 0.2s ease;
}

.journey-input {
    height: 46px;
    padding: 0 16px;
}

.journey-textarea {
    padding: 16px;
    resize: vertical;
}

#storyText {
    height: 120px;
}

.msg-area {
    min-height: 120px;
}

.journey-input:focus, .journey-textarea:focus {
    outline: none;
    border-color: #c7a97f;
}

.custom-input-group label, .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--text-color);
}

.form-group {
    margin-bottom: 18px;
}

.final-form-container {
    max-width: 720px;
    margin: 0 auto;
}

.upload-box {
    height: 120px;
    border: 2px dashed #e6e2dd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s ease;
}

.upload-box:hover {
    border-color: #c7a97f;
}

.upload-box span {
    color: var(--secondary-color);
    font-size: 14px;
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.btn-submit-request {
    height: 50px;
    width: 100%;
    background: #1a1a1a;
    color: white;
    border-radius: 6px;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}
.btn-submit-request:hover {
    background: #333;
}

/* --- SIDE SUMMARY PANEL --- */
.summary-panel-wrapper {
    width: 300px;
    flex-shrink: 0;
}

.summary-panel {
    border: 1px solid #eee;
    padding: 24px;
    border-radius: 12px;
    background: #fff;
    position: sticky;
    top: 120px; /* Accounts for header + progress bar */
    transition: all 0.25s ease;
}

.summary-panel h3 {
    margin-bottom: 16px;
    font-size: 22px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-list li {
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
}

.summary-label {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.summary-value {
    color: var(--text-color);
    font-weight: 500;
}


/* --- CONTROLS --- */
.journey-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 24px;
}

.btn-nav-step {
    padding: 12px 24px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e6e2dd;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-nav-step:hover {
    border-color: #c7a97f;
    color: #c7a97f;
}

.next-btn {
    background: var(--text-color);
    color: #fff;
    border-color: var(--text-color);
}
.next-btn:hover {
    background: #333;
    color: #fff;
}


/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .journey-container {
        flex-direction: column;
    }
    .summary-panel-wrapper {
        width: 100%;
    }
    .summary-panel {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
    .option-card {
        height: 180px; /* Adjust as requested for mobile */
    }
    /* specifically target step 2 & 4 to look better on mobile */
    .story-grid .option-card, .format-grid .format-card {
        height: auto;
        padding: 24px;
    }
    .progress-line {
        width: 60px; /* shorter lines on mobile */
    }
    .journey-hero .journey-title {
        font-size: 36px;
    }
}
