@font-face {
    font-family: "IvyOraText";
    src: url("/assets/fonts/IvyOraText-Medium.ttf")
}

@font-face {
    font-family: "WorkSans";
    src: url("/assets/fonts/WorkSans-Medium.ttf")
}

@font-face {
    font-family: "pretty-boy";
    src: url("/assets/fonts/demo-prettyboy-semibold.otf")
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "WorkSans";
    background-color: #faf8f5;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
    background-image: url("/assets/images/bg.png");
    background-position: center;
    width: 100%;
    background-size: cover;
    position: relative;
}

/* Sidebar Styles */
.sidebar {
    width: 320px;
    /* background: linear-gradient(135deg, #d4c4a8 0%, #c4b498 100%); */
    background: linear-gradient(180deg, #EADFCB 0%, #FFF 100%);
    /* background-color: ; */
    padding: 40px 30px;
    position: fixed;
    top: 0%;
    left: 0%;
    height: 100vh;
    /* box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1); */
}

.logo {
    text-align: left;
    margin-bottom: 50px;
    
}

.logo img {
    width: 100%;
    max-width: 165px;
    filter: invert(1);
}

/* Progress Steps */
.progress-steps {
    position: relative;
    padding-left: 4px;
    /* small inset so text aligns nicely */
}

/* Ensure each step is a positioning context */
.step {
    position: relative;
}

.step-content {
    margin-top: -22px;
    padding-left: 30px;
}

/* diamond size kept as you have (18px) */
.step-diamond {
    width: 22px;
    height: 18px;
}

/* Connector from this diamond down to the next one */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 10px;
    top: 22px;
    width: 2px;
    height: 108px;
    background: linear-gradient(to bottom, #b8860b, #d1a33a);
    z-index: 1;
}

/* Safety: allow connectors to extend beyond container if needed */
.progress-steps {
    overflow: visible;
}

/* Spacing between steps (keep whatever you like) */
.step {
    margin-bottom: 92px;
}

/* No connector after the last diamond */
.step:last-child .step-diamond::after {
    display: none;
}

.step.active .step-diamond {
    filter: drop-shadow(0 2px 10px rgba(184, 134, 11, 0.4));
}

.step-content h3 {
    color: #8b4513;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    transition: all 0.3s ease;
    background: linear-gradient(90deg, #7D4708 0%, #E3810F 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step-content p {

    color: #a0522d;
    font-size: 12px;
    /* font-weight: 400; */
    line-height: 1.35;
    margin-top: 0;
    transition: all 0.3s ease;
}

.step:not(.active) .step-content h3,
.step:not(.active) .step-content p {
    color: #c4b498;
}

/* Main Content */
.phone-logo {
    display: none;
}

.main-content {
    display: flex;
    align-items: center;
    width: 100%;
    /* justify-content: end; */
    padding-left: 350px;
}

.content-wrapper {
    max-width: 1200px;
    padding: 3rem;
    width: 100%;
}

.header {
    margin-bottom: 30px;
}

.header h1 {
    font-size: 48px;
    font-weight: 100;
    color: #2F2F2F;
    margin-bottom: 20px;
    line-height: 1.2;
    font-family: "IvyOraText";
}

.header .highlight {
    font-family: "pretty-boy";
    background: linear-gradient(90deg, #E99700 42.31%, #000 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    font-size: 18px;
    color: #1b1000a8;
    margin-bottom: 50px;
    font-weight: 400;
}

/* Form Styles */

.form.second-step .form-row {
    display: flex;
    flex-direction: column;
}

.form.third-step .form-row {
    display: flex;
    flex-direction: column;
}

.form.second-step .radio-item {
    border: none;
    background: none;

}

.form.third-step .radio-item {
    border: none;
    background: none;
}

.form.second-step .radio-group {
    gap: 6px;
}


.form.third-step .radio-group {
    grid-template-columns: repeat(4, 1fr);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.form-group label {
    color: #5d4037;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.form-group input,
select,
textarea {
    padding: 15px 18px;
    border: 1px solid #e8e0d0;
    border-radius: 8px;
    font-size: 16px;
    color: #2c1810;
    background: white;
    transition: all 0.3s ease;
}

.form-group input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #b8860b;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.form-group input::placeholder {
    color: #a0a0a0;
}

/* Radio Button Styles */
.radio-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.radio-group.horizontal {
    grid-template-columns: repeat(3, 1fr);
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #e8e0d0;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.radio-item:hover {
    border-color: #b8860b;
    background: #faf8f5;
}

.radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #b8860b;
    cursor: pointer;
}

.radio-item label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: #5d4037;
}

.radio-item input[type="radio"]:checked+label {
    color: #b8860b;
    font-weight: 600;
}

/* Third section specific styles for scrollable content */
.form-row:last-child {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 15px;
}

.form-row:last-child::-webkit-scrollbar {
    width: 8px;
}

.form-row:last-child::-webkit-scrollbar-track {
    background: #f8f6f3;
    border-radius: 4px;
}

.form-row:last-child::-webkit-scrollbar-thumb {
    background: #b8860b;
    border-radius: 4px;
}

.form-row:last-child::-webkit-scrollbar-thumb:hover {
    background: #8b4513;
}

.form-actions {
    display: flex;
    justify-content: end;
    margin-top: 15px;
    gap: 20px;
}

.btn-prev {
    background: white;
    color: #7D4708;
    border: 1.5px solid #7D4708;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-prev:hover {
    background: #7D4708;
    color: white;
}

.btn-next {
    background: #7D4708;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-next:hover {
    background: #8b4513;
    transform: translateY(-2px);
}

.btn-next:active {
    transform: translateY(0);
}

.btn-next,
.btn-prev {
    margin-bottom: 2rem;
}

#step-3 h3 {
    background: linear-gradient(90deg, #093165 0%, #1399CB 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.success-view {
    color: #2F2F2F;
    flex-direction: column;
    align-items: center;
    font-size: 1rem;
}

.footer {
    z-index: 10;
    color: #000000c7;
    position: absolute;
    bottom: 0;
    background: #efecec;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    gap: 4px;
}

.footer img {
    filter: invert(0.75);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 260px;
        padding: 30px 20px;
    }

    .main-content {
        padding: 40px 0;
    }

    .content-wrapper {
        padding-left: 300px;
    }

    .form.third-step .radio-group {
        grid-template-columns: repeat(2, 1fr);
    }

    .header h1 {
        font-size: 30px;
    }


}

@media (max-width: 768px) {
    .container {
        background-image: url("/assets/images/bg-vertical.png");
    }

    /* Make sidebar a horizontal top bar */
    .sidebar {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        padding: 12px 16px;
        z-index: 10;
        display: block;

    }

    /* Horizontal stepper with connectors */
    .progress-steps {
        display: flex;
        align-items: flex-start;
        justify-content: space-evenly;
        gap: 18px;
        overflow: hidden;
        height: 90px;
    }

    .progress-steps::before {
        display: none;
    }

    .step {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin: 0;
        position: relative;
        text-align: center;
        min-width: auto;
        padding: 0;
    }

    .step-diamond {
        width: 30px;
        height: 30px;
        margin: 0;
        flex: 0 0 auto;
    }

    /* connector between diamonds */
    .step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 12px;
        /* center with 16px diamond */
        left: calc(100% + 6px);
        width: 90px;
        height: 2px;
        background: linear-gradient(to right, #b8860b, #d1a33a);
    }

    /* Show only active step title below the bar */
    .step-content {
        display: none;
        padding: 0;
        margin: 0;
    }

    .step.active .step-content {
        display: block;
    }

    .step-content h3 {
        font-size: 14px;
        margin: 0;
        width: min-content;
    }

    .step-content p {
        display: none;
    }

    .phone-logo {
        display: none;
    }

    .container {
        flex-direction: column;
    }

    .content-wrapper {
        padding-left: 48px;
    }

    .main-content {
        padding: 0 !important;
    }

    .success-view {
        margin: 60px 0;
    }

    .success-view h2 {
        text-align: center;
        padding: 12px;
    }
}

@media (max-width: 480px) {

    /* Compact top bar on phones */
    .sidebar {
        padding: 10px 12px;
    }
.logo img {
    padding-top: 25px;
}
    .progress-steps {
        gap: 14px;
        height: fit-content;
    }

    .step-diamond {
        width: 20px;
        height: 20px;
    }

    .step:not(:last-child)::after {
        top: 6px;
        left: calc(100% + 5px);
        width: 28px;
    }

    .step-content h3 {
        font-size: 13px;
    }

    .content-wrapper {
        padding: 2rem 1rem;
    }

    .header h1 {
        font-size: 28px;
    }

    .header p {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .form-row {
        gap: 0px;
    }

    .radio-item {
        padding: 12px 0px;
    }

    .form {
        padding: 20px 12px;
    }

    .form-group input,
    select,
    textarea {
        padding: 10px;
    }

    .form-group label {
        font-size: 14px;
        width: fit-content;
    }

    .form-row {
        margin-bottom: 0;
    }

    .btn-next,
    .btn-prev {
        padding: 12px 35px;
    }

    .radio-item input[type="radio"] {
        width: 12px;
        height: 14px;
    }

    .footer {
        font-size: 14px;
    }

    .footer img {
        width: 16px;
    }
}

@media (max-height:700px) {
    .sidebar {
        overflow-y: scroll;
        scrollbar-width: none;
    }
}