/* ==========================================
   SERVICEPRICE — GET MY RATE
   PREMIUM DARK THEME
   ========================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #070D10;
    color: #FFFDD0;
    font-family: "Playfair Display", serif;
    min-height: 100vh;
}


/* =========================
   NAVIGATION
========================= */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 16px 35px;

    background: rgba(7, 13, 16, 0.75);
    backdrop-filter: blur(12px);
}

#logo {
    text-decoration: none;
    color: #FFFDD0;

    font-size: 27px;
    font-weight: 500;
}

nav ul {
    list-style: none;

    display: flex;
    gap: 30px;
}

nav ul li a {
    position: relative;

    text-decoration: none;
    color: #FFFDD0;

    font-size: 17px;

    padding: 5px 0;
}

nav ul li a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 0;
    height: 1px;

    background: #D7C09D;

    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}


/* =========================
   MAIN PAGE
========================= */

#ratepage {
    width: 100%;
    max-width: 1000px;

    margin: auto;

    padding: 150px 30px 100px;
}


/* =========================
   INTRO
========================= */

#rateintro {
    text-align: center;

    max-width: 700px;

    margin: 0 auto 70px;
}

#smallheading {
    color: #D7C09D;

    font-size: 13px;

    letter-spacing: 4px;

    margin-bottom: 20px;
}

#rateintro h1 {
    color: #B2B191;

    font-size: 52px;

    font-weight: 500;

    margin-bottom: 20px;
}

#introdescription {
    color: #9C9C8B;

    font-family: Arial, sans-serif;

    font-size: 17px;

    line-height: 1.7;

    max-width: 600px;

    margin: auto;
}


/* =========================
   FORM CONTAINER
========================= */

#rateformsection {
    width: 100%;
    max-width: 700px;

    margin: auto;

    padding: 45px;

    background: rgba(15, 22, 25, 0.85);

    border: 1px solid rgba(178, 177, 145, 0.12);

    border-radius: 24px;

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}


/* =========================
   FORM
========================= */

#rateform {
    display: flex;

    flex-direction: column;

    gap: 32px;
}

.question {
    display: flex;

    flex-direction: column;

    gap: 11px;
}

.question label {
    color: #D7C09D;

    font-size: 17px;
}

.questionhint {
    color: #888D87;

    font-family: Arial, sans-serif;

    font-size: 13px;

    line-height: 1.6;

    margin-top: -3px;
}


/* =========================
   STANDARD INPUTS
========================= */

.question select,
.question input,
.service-detail-section select,
.service-detail-section input,
.extra-question input {
    width: 100%;

    padding: 15px 17px;

    border-radius: 10px;

    border: 1px solid rgba(178, 177, 145, 0.2);

    background: #0B1215;

    color: #FFFDD0;

    font-family: Arial, sans-serif;

    font-size: 15px;

    outline: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.question select,
.service-detail-section select {
    cursor: pointer;
}

.question select:focus,
.question input:focus,
.service-detail-section select:focus,
.service-detail-section input:focus,
.extra-question input:focus {
    border-color: #B2B191;

    box-shadow:
        0 0 0 3px rgba(178, 177, 145, 0.08);
}

.question input::placeholder,
.service-detail-section input::placeholder,
.extra-question input::placeholder {
    color: #666B67;
}


/* =========================
   MULTI-SERVICE SELECTOR
========================= */

#serviceoptions {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 14px;

    margin-top: 8px;
}

.serviceoption {
    position: relative;

    display: flex;

    align-items: center;

    gap: 14px;

    min-height: 68px;

    padding: 17px 18px;

    background: #0B1215;

    border: 1px solid rgba(178, 177, 145, 0.15);

    border-radius: 15px;

    cursor: pointer;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.serviceoption:hover {
    border-color: rgba(215, 192, 157, 0.45);

    background: #0D1619;

    transform: translateY(-2px);
}

.serviceoption input {
    width: 18px;
    height: 18px;

    margin: 0;

    padding: 0;

    accent-color: #D7C09D;

    cursor: pointer;
}

.serviceoption span {
    color: #FFFDD0;

    font-family: Arial, sans-serif;

    font-size: 14px;

    line-height: 1.4;
}


/* Selected service */

.serviceoption:has(input:checked) {
    border-color: rgba(215, 192, 157, 0.6);

    background: rgba(215, 192, 157, 0.06);

    box-shadow:
        0 0 25px rgba(215, 192, 157, 0.04);
}

.serviceoption:has(input:checked) span {
    color: #D7C09D;
}


/* =========================
   SERVICE DETAILS
========================= */

#servicedetails {
    display: flex;

    flex-direction: column;

    gap: 20px;
}

.service-detail-section {
    padding: 28px;

    background: rgba(11, 18, 21, 0.9);

    border: 1px solid rgba(178, 177, 145, 0.12);

    border-radius: 18px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.service-detail-section h3 {
    color: #B2B191;

    font-size: 24px;

    font-weight: 500;

    margin-bottom: 24px;
}

.service-detail-section > label {
    display: block;

    color: #D7C09D;

    font-size: 15px;

    margin-bottom: 10px;
}

.service-detail-section > label:not(:first-of-type) {
    margin-top: 20px;
}


/* =========================
   EXTRA QUESTIONS
========================= */

.extra-service-questions {
    display: flex;

    flex-direction: column;

    gap: 20px;

    margin-top: 20px;
}

.extra-question {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.extra-question label {
    color: #D7C09D;

    font-size: 15px;
}


/* =========================
   MONEY INPUT
========================= */

.moneyinput {
    position: relative;
}

.moneyinput span {
    position: absolute;

    left: 17px;
    top: 50%;

    transform: translateY(-50%);

    color: #9C9C8B;

    font-family: Arial, sans-serif;

    font-size: 14px;

    pointer-events: none;
}

.moneyinput input {
    padding-left: 55px;
}


/* =========================
   CALCULATE BUTTON
========================= */

#calculatebutton {
    position: relative;

    margin-top: 15px;

    width: 100%;

    padding: 17px 25px;

    border: none;

    border-radius: 12px;

    background: #FFFDD0;

    color: #070D10;

    font-family: "Playfair Display", serif;

    font-size: 18px;

    cursor: pointer;

    box-shadow:
        0 0 15px rgba(255, 253, 208, 0.18),
        0 0 35px rgba(255, 253, 208, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

#calculatebutton span {
    margin-left: 8px;
}

#calculatebutton:hover {
    transform: translateY(-2px);

    background: #D7C09D;

    box-shadow:
        0 0 20px rgba(255, 253, 208, 0.3),
        0 0 50px rgba(255, 253, 208, 0.12);
}


/* =========================
   RESULTS
========================= */

#results {
    max-width: 900px;

    margin: 80px auto 0;

    text-align: center;
}

#resultlabel {
    color: #D7C09D;

    font-size: 13px;

    letter-spacing: 4px;

    margin-bottom: 15px;
}

#recommendedprice {
    color: #FFFDD0;

    font-size: 64px;

    font-weight: 500;

    margin-bottom: 20px;

    text-shadow:
        0 0 25px rgba(255, 253, 208, 0.12);
}

#resultdescription {
    max-width: 600px;

    margin: auto;

    color: #9C9C8B;

    font-family: Arial, sans-serif;

    font-size: 16px;

    line-height: 1.7;
}


/* =========================
   PROJECT BREAKDOWN
========================= */

#projectbreakdown {
    max-width: 700px;

    margin: 50px auto 0;

    text-align: left;
}

#projectbreakdown h3 {
    color: #D7C09D;

    font-size: 12px;

    letter-spacing: 3px;

    font-weight: 400;

    margin-bottom: 15px;
}

#breakdownitems {
    background: rgba(11, 18, 21, 0.75);

    border: 1px solid rgba(178, 177, 145, 0.1);

    border-radius: 16px;

    overflow: hidden;
}

.breakdownitem {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 18px 22px;

    border-bottom: 1px solid rgba(178, 177, 145, 0.08);
}

.breakdownitem:last-child {
    border-bottom: none;
}

.breakdownitem span {
    color: #9C9C8B;

    font-family: Arial, sans-serif;

    font-size: 14px;
}

.breakdownitem strong {
    color: #FFFDD0;

    font-family: Arial, sans-serif;

    font-size: 14px;

    font-weight: 500;
}


/* =========================
   RESULT CARDS
========================= */

#resultcards {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;

    margin-top: 45px;
}

.resultcard {
    padding: 28px 22px;

    text-align: left;

    background: #0B1215;

    border: 1px solid rgba(178, 177, 145, 0.12);

    border-radius: 18px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.resultcard:hover {
    transform: translateY(-4px);

    border-color: rgba(215, 192, 157, 0.35);
}

.resultcard p {
    color: #D7C09D;

    font-size: 11px;

    letter-spacing: 2px;

    margin-bottom: 15px;
}

.resultcard h3 {
    color: #FFFDD0;

    font-size: 25px;

    font-weight: 500;

    margin-bottom: 15px;
}

.resultcard span {
    color: #888D87;

    font-family: Arial, sans-serif;

    font-size: 13px;

    line-height: 1.6;
}


/* =========================
   EXPLANATION
========================= */

#resultexplanation {
    max-width: 700px;

    margin: 50px auto 0;

    padding: 35px;

    background: rgba(15, 22, 25, 0.8);

    border-radius: 18px;

    border: 1px solid rgba(178, 177, 145, 0.1);

    text-align: left;
}

#resultexplanation h3 {
    color: #D7C09D;

    font-size: 22px;

    margin-bottom: 15px;
}

#explanationtext {
    color: #9C9C8B;

    font-family: Arial, sans-serif;

    font-size: 15px;

    line-height: 1.7;
}


/* =========================
   RESTART BUTTON
========================= */

#restartbutton {
    margin-top: 35px;

    padding: 13px 22px;

    border-radius: 10px;

    border: 1px solid rgba(178, 177, 145, 0.25);

    background: transparent;

    color: #D7C09D;

    font-family: "Playfair Display", serif;

    font-size: 15px;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

#restartbutton:hover {
    background: #D7C09D;

    color: #070D10;
}


/* =========================
   HIDDEN STATE
========================= */

.hidden {
    display: none;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    nav {
        padding: 15px 20px;
    }

    #logo {
        font-size: 23px;
    }

    nav ul {
        gap: 15px;
    }

    nav ul li a {
        font-size: 14px;
    }

    #ratepage {
        padding: 120px 18px 70px;
    }

    #rateintro h1 {
        font-size: 38px;
    }

    #introdescription {
        font-size: 15px;
    }

    #rateformsection {
        padding: 25px 20px;
    }

    #serviceoptions {
        grid-template-columns: 1fr;
    }

    .service-detail-section {
        padding: 23px 20px;
    }

    #resultcards {
        grid-template-columns: 1fr;
    }

    #recommendedprice {
        font-size: 48px;
    }

    #projectbreakdown {
        margin-top: 40px;
    }

}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 450px) {

    #ratepage {
        padding-left: 14px;
        padding-right: 14px;
    }

    #rateformsection {
        padding: 22px 16px;

        border-radius: 18px;
    }

    #rateintro h1 {
        font-size: 34px;
    }

    .serviceoption {
        min-height: 62px;

        padding: 15px;
    }

    .service-detail-section {
        padding: 20px 16px;
    }

    .breakdownitem {
        padding: 16px;
    }

}