* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    height: 100%;
}
body {
    font-family: Bahnschrift, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    min-height: 100dvh;
    height: auto;
    overflow-y: auto;
    background: transparent;
}


html::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background: url("/img/builder-background-2600-5d683caa85d26e4045c3350df1af4c98.webp") center / 100% 100% no-repeat;

    /* promote to its own layer */
    transform: translateZ(0);
    will-change: transform;
}

.seo-heading{
    position:absolute;
    left:-9999px;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px 20px 50px;
}

/* Form Sections */
.page-header {
    background: rgba(52, 71, 103, 1);
    text-align: start;
    width: 100%;
    height: fit-content;
    border-radius: 15px;
    margin-bottom: 20px;
    margin-top: 20px;
    padding: 25px;
    z-index: 1;
    position: relative;
    border: 2px solid rgba(24, 33, 48, 0.65);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
    animation: fadein 0.8s ease-in-out;

}


.page-header h1 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #FFFFFF;
    z-index: 1;
}

.page-header p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #FFFFFF;
    z-index: 1;
}

.form-section,
.fast-mode-input-section {
    background: rgba(255, 255, 255, 1); /* ← slightly transparent */
    border-radius: 18px;
    margin-bottom: 28px;
    padding: 35px 25px 50px 25px;
    z-index: 1;
    position: relative;
    margin-left: 2px;
    margin-right: 2px;
    border: 0.1rem solid rgba(52, 71, 103, 0.7);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    animation: fadein 0.8s ease-in-out;
}


/* Grid Layouts */
.form-grid {
    display: grid;
    gap: 15px;
}

.two-column {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.one-column {
    grid-template-columns: 1fr;
}

/* Inputs and Labels */
label {
    display: flex;
    flex-direction: column;;
    font-size: 0.85rem;
    color: #4b4b4b;
    font-weight: 600;
}

.label-title {
    display: inline-flex;
    align-items: center;
    gap: 2px; /* small spacing between text and * */
}

.required {
    color: red;
    font-weight: normal;
}

input, textarea {
    width: 100%;
    font-size: 1rem;
    margin-top: 5px;
    justify-content: flex-start;
    font-weight: 500;
    border-radius: 8px;
    padding: 12px 14px;
    border: 1px solid #d7d7d7;
    background: #fafafa;
    transition: all 0.2s ease;
}

input:focus,
textarea:focus {
    border-color: #344767;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(52, 71, 103, 0.15);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

input::placeholder,
textarea::placeholder {
    color: #959595; /* light gray placeholder */
    font-weight: 400; /* normal weight */
    font-style: italic; /* optional */
    font-size: 14px;
}
.error-message{
    color: red;
    font-weight: 500;
    font-style: italic;
    font-size: 12px;
}


.sticky-actions{
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;

    align-items: center;
    justify-content: center;
    gap: 14px;
    display: flex;
    padding: 16px 18px;
    margin-top: 24px;

    /* Light glass */
    background: transparent;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(2px);

    border-top: 1px solid rgba(0,0,0,0.26);

    z-index: 2000;
    animation: fadein 0.8s ease-in-out;

}
.action-btn{
    height: 50px;
    padding: 0 22px;
    border-radius: 18px;

    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.2px;

    border: none;
    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    transition:
            transform 0.14s ease,
            box-shadow 0.14s ease,
            filter 0.14s ease;

    min-width: 180px;
}

/* Primary CTA */
.action-primary{
    color: #fff;

    background: linear-gradient(
            135deg,
            #344767 0%,
            #4a6391 60%,
            #2f3f5c 100%
    );

    box-shadow:
            0 14px 28px rgba(52, 71, 103, 0.25),
            0 6px 14px rgba(52, 71, 103, 0.18);

    position: relative;
    overflow: hidden;

}

.action-primary:hover{
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow:
            0 20px 40px rgba(52, 71, 103, 0.30),
            0 10px 22px rgba(52, 71, 103, 0.22);
}

.action-primary:active{
    transform: translateY(0);
    box-shadow:
            0 10px 20px rgba(52, 71, 103, 0.20);
}
.action-ghost{
    background: rgba(52, 71, 103, 0.12);
    color: #344767;
    border: 1px solid rgba(52, 71, 103, 0.18);
}

.action-ghost:hover{
    background: rgba(52, 71, 103, 0.12);
    transform: translateY(-1px);
}

.action-ghost:active{
    transform: translateY(0);
}

.split-build{
    position: relative;
    display: flex;
    align-items: stretch;
}

.build-main{
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.build-mode-trigger{
    position: relative;
    border: none;
    padding: 0 17px;
    border-radius: 0 18px 18px 0;
    margin-left: -1px; /* visually joins with main button */

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    background: linear-gradient(135deg, #2f3f5c 0%, #425881 100%);
    color: #fff;

    transition: filter .14s ease, transform .14s ease;
    overflow: hidden;
}

.build-mode-trigger::before{
    content: "";
    position: absolute;
    left: 0;
    top: 7%;
    width: 2px;
    height: 86%;
    background: rgba(255,255,255,0.48);
    z-index: 2;
    pointer-events: none;
}

.build-mode-trigger:hover{
    background: #2d3c57;
}

.build-mode-trigger:active{
    background: #2d3c57;
}

.chip-icon{
    font-size: 15px;
}

.build-menu{
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    width: 260px;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.14);
    padding: 8px;
    display: none;
    z-index: 3000;
}

.build-menu.open{
    display: block;
}


.menu-item{
    width: 100%;
    text-align: left;
    border: 1px solid transparent;
    background: transparent;
    padding: 10px 10px;
    border-radius: 12px;
    cursor: pointer;

    transition: background .15s ease, border-color .15s ease;
}

.menu-item:hover{
    background: rgba(52,71,103,0.08);
}

.menu-item.is-active{
    background: rgba(52,71,103,0.12);
    border-color: rgba(52,71,103,0.18);
}

.mi-title{
    font-weight: 900;
    font-size: 13px;
    color: #253249;
}
.mi-sub{
    font-weight: 700;
    font-size: 12px;
    color: rgba(37,50,73,0.70);
    margin-top: 2px;
}

.menu-item{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
}



.chip-icon.is-ultra{
    color: #f59e0b;
    animation: ultraPulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.35));
}

@keyframes ultraPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.28));
    }
    50% {
        transform: scale(1.12);
        filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
    }
}


/* MODE CONTAINER */
.mode-container {
    margin-bottom: 25px;
    z-index: 1;
    position: relative;
}

/* Mode box */
.mode-section {
    border-radius: 14px;
    margin-top: 35px;
    overflow: hidden;
    width: 100%;

}

/* Header */
.mode-header {
    padding: 18px 22px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    z-index: 1;
    position: relative;
    background: white;
    border-radius: 15px;
    border: 1px solid rgba(24, 33, 48, 0.65);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    margin: 2px;
    animation: fadein 0.8s ease-in-out;
}

.mode-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #344767;
}
.mode-title-img {
    width: 19px;
    height: 19px;
    z-index: 10;
    position: relative;
    background: #373636;
    border-radius: 5px;
    padding: 2px;
    margin-left: 3px;
    margin-bottom: 1px;
}

.mode-subtitle {
    font-size: 0.9rem;
    color: #6a6a6a;
    margin-top: 4px;
}

.mode-arrow {
    margin-left: 6px;
    font-size: 1rem;
    color: #555;
}

/* Content box */
.mode-content {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Expanded state */
.mode-section.active .mode-content {
    max-height: 8000px;
    padding-top: 10px;
}

/* Collapsed state */
.mode-content.collapsed {
    max-height: 0 !important;
    padding: 0 22px !important;
}


/* Textarea in fast mode */
.fast-mode-input-section textarea {
    width: 100%;
    min-height: 210px;
    margin-top: 12px;
    border-radius: 10px;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
}


.fast-mode-input-section textarea:focus {
    border-color: #344767;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(52, 71, 103, 0.15);

}

/* Warning */
.mode-warning {
    color: #836413;
    margin-top: 12px;
    font-size: 0.9rem;
    display: none;
    font-weight: 600;

}

/* New style for the important warning/focus message */
.section-focus-message {
    background-color: #fff3cd; /* Light warning yellow */
    color: #856404; /* Darker text for readability */
    border: 1px solid #ffeeba;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Ensure bold text inside the warning is properly formatted */
.section-focus-message strong {
    font-weight: 700;
}


.field.locked {
    position: relative;
}

.locked-input {
    opacity: 0.65;
    cursor: not-allowed;
}

.field.locked::after {
    content: "🔒";
    position: absolute;
    right: 10px;
    top: 36px;
    font-size: 14px;
    opacity: 0.8;
}

.locked-hint {
    display: block;
    margin-top: 6px;
    opacity: 0.75;
    font-size: 12px;
}


@keyframes fadein {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}


.build-overlay{
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(10, 12, 16, 0.65);
    backdrop-filter: blur(6px);
    z-index: 9999;
}

.build-overlay.show{ display: flex; }

.build-card{
    width: min(520px, calc(100vw - 32px));
    padding: 28px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 18px 60px rgba(0,0,0,0.35);
    color: #fff;
    text-align: center;
}

.spinner{
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.25);
    border-top-color: rgba(255,255,255,0.95);
    animation: spin 0.9s linear infinite;
}

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

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-top: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: #344767;
    transition: width 0.4s ease;
}



@media (max-width: 900px){
    .container{padding:12px 29px 30px;}
    .page-header{margin:12px 0 12px;padding:16px;border-radius:14px;}
    .page-header h1{font-size:1.05rem;margin-bottom:10px;}
    .page-header p{font-size:0.85rem;}
    .form-section,.fast-mode-input-section{padding:26px 18px 32px;border-radius:16px;margin-bottom:18px;}
    .mode-header{padding:14px 16px;border-radius:14px;}
    .mode-title{font-size:1.15rem;}
    .mode-subtitle{font-size:0.85rem;}
    .two-column{grid-template-columns:1fr;}
    input,textarea{padding:11px 12px;font-size:0.98rem;}
    .section-focus-message{padding:12px;font-size:0.92rem;margin-bottom:16px;}
}


@media (max-width: 600px){
    .container{padding:8px 24px 18px;}
    .page-header{margin:8px 0 8px;padding:12px;}
    .page-header h1{font-size:0.98rem;margin-bottom:8px;}
    .page-header p{font-size:0.8rem;}
    .form-section,.fast-mode-input-section{padding:18px 14px 22px;border-radius:14px;margin-bottom:14px;}
    label{font-size:0.82rem;}
    input,textarea{padding:10px 11px;font-size:0.95rem;}
    textarea{min-height:110px;}
    input::placeholder,textarea::placeholder{font-size:13px;}
    .mode-container{margin-bottom:14px;}
    .mode-section{margin-top:14px;}
    .mode-header{padding:12px 14px;}
    .mode-title{font-size:1.05rem;}
    .mode-subtitle{font-size:0.82rem;}
    .fast-mode-input-section textarea{min-height:190px;font-size:0.95rem;}
    .build-card{padding:22px;border-radius:16px;}
    .spinner{width:48px;height:48px;}

    .sticky-actions{ flex-direction: column; gap: 10px; }
    .split-build{width: 100%;}
    .build-main{min-width: 0;flex: 1;}

    .build-menu{width: 100%;left: 0;right: 0;}
    .action-btn{width: 100%; !important;}
}




