* {
    box-sizing: border-box;
}
html, body {
    height: 100%;
    margin: 0;
}
body {
    font-family: "Poppins", sans-serif;
    background: #f3f4f6; 
    color: #111827;
    display: flex;
    flex-direction: column;
}


header {
    width: 100%;
    background: #ffffff;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}
.logo {
    font-family: "Katibeh", serif;
    font-size: 56px;
    margin: 0;
    color: #111827;
}
nav a {
    margin-left: 25px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    color: #111827;
    position: relative;
}
nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #F7DF1E;
    transition: width 0.2s ease-in-out;
}
nav a:hover::after {
    width: 100%;
}


.page-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.estimator-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    max-width: 1180px;
    width: 100%;
    padding: 40px 40px 32px;
    display: flex;
    gap: 40px;
}


.content {
    flex: 3;
}
.sub-title {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 28px;
}
.section-label {
    font-size: 16px;
    font-weight: 700;
    margin-top: 20px;
}
.small-info {
    font-size: 13px;
    margin: 6px 0 10px;
    color: #6b7280;
}
.question {
    font-size: 14px;
    margin-bottom: 8px;
}


input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 11px 12px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    margin-bottom: 10px;
    outline: none;
    transition: 0.15s;
}

input[type="text"]:focus,
input[type="number"]:focus {
    border-color: #F7DF1E;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(247, 223, 30, 0.25);
}


.error-border {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25) !important;
}


@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}
.shake {
    animation: shake 0.25s ease-in-out;
}


#errorMsg {
    color: #dc2626;
    font-weight: 700;
    font-size: 14px;
    margin-top: 6px;
    padding-left: 2px;
}


.options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
}
.options label {
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: 0.15s;
}
.options label:hover {
    border-color: #F7DF1E;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(148, 163, 184, 0.35);
}
.options input[type="radio"] {
    accent-color: #F7DF1E;
}


.btn {
    width: 260px;
    height: 60px;
    background: #F7DF1E;
    border: none;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    color: #111827;
    margin-top: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 22px rgba(250, 204, 21, 0.35);
    transition: 0.15s;
}
.btn:hover {
    background: #facc15;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(234, 179, 8, 0.45);
}
.btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(234, 179, 8, 0.35);
}


.side-hero {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}
.image-wrapper {
    background: linear-gradient(135deg, #eef2ff, #fef9c3);
    border-radius: 24px;
    padding: 18px 16px 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
}
.hero-img {
    width: 100%;
    height: auto;
    transform: scale(1.15);
}


footer {
    background: #e5e7eb;
    padding: 20px 60px;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #4b5563;
    font-size: 18px;
    font-style: italic;
}
footer .right {
    font-weight: 600;
}


@media (max-width: 980px) {
    .estimator-card {
        flex-direction: column-reverse;
        padding: 28px 22px;
    }
    .image-wrapper {
        max-width: 320px;
        margin: 0 auto 10px;
    }
    .btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    header {
        padding: 14px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    nav a {
        margin-left: 0;
        margin-right: 18px;
        font-size: 17px;
    }
    .estimator-card {
        box-shadow: 0 12px 25px rgba(15, 23, 42, 0.12);
    }
}
@media (max-width: 600px) {

    .sub-title {
        font-size: 16px;
    }

    input[type="text"],
    input[type="number"] {
        font-size: 14px;
    }

    .options {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        height: 50px;
        font-size: 16px;
    }
}
/* ===== GLOBAL RESPONSIVE ===== */

@media (max-width: 900px) {

    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
        gap: 10px;
    }

    .logo {
        font-size: 38px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    nav a {
        margin: 0;
        font-size: 16px;
    }

    footer {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 15px 20px;
        font-size: 14px;
        height: auto;
    }
}