@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');


/* ================= BASE ================= */

.scalehost-services,
.enquiry-section {
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.scalehost-services *,
.enquiry-section * {
    box-sizing: border-box;
}


/* ================= SERVICES SECTION ================= */

.scalehost-services {
    width: 100%;
    padding: 85px 5%;
    background: #f7f9fc;
    color: #14213d;
}

.services-container {
    max-width: 1450px;
    margin: 0 auto;
}


/* ================= HEADINGS ================= */

.services-heading,
.enquiry-heading {
    max-width: 800px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-tag {
    display: inline-block;
    color: #f47721;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.services-heading h2,
.enquiry-heading h2 {
    margin: 0 0 16px;
    color: #14213d;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.25;
}

.scale-text {
    color: #1769aa;
}

.host-text {
    color: #f47721;
}

.services-heading p,
.enquiry-heading p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.8;
}


/* ================= SERVICE CARDS GRID ================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.service-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(18, 42, 75, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 35px rgba(18, 42, 75, 0.12);
}


/* ================= CARD IMAGES ================= */

.service-image {
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #eaf1f9;
}

.service-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.06);
}


/* ================= CARD CONTENT ================= */

.service-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 23px 20px 22px;
}

.service-content h3 {
    margin: 0 0 12px;
    color: #14213d;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
}

.service-content p {
    flex: 1;
    margin: 0 0 24px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.8;
}


/* ================= CARD BUTTON ================= */

.service-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 13px 15px;
    border-radius: 8px;
    background: #1769aa;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s ease;
}

.service-btn span {
    font-size: 19px;
    transition: transform 0.3s ease;
}

.service-btn:hover {
    background: #f47721;
    color: #ffffff;
}

.service-btn:hover span {
    transform: translateX(4px);
}


/* ================= ENQUIRY SECTION ================= */

/* Hidden until a service button is clicked */

.enquiry-section {
    display: none;
    width: 100%;
    padding: 85px 5%;
    background: #ffffff;
    color: #14213d;
    scroll-margin-top: 35px;
}

.enquiry-section.active {
    display: block;
    animation: formFade 0.4s ease;
}

.enquiry-container {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 48px;
    background: #ffffff;
    border: 1px solid #e8edf4;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(18, 42, 75, 0.06);
}

.enquiry-heading {
    margin-bottom: 40px;
}


/* ================= FORM SECTION TITLES ================= */

.form-section-title {
    margin: 36px 0 24px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8edf4;
}

.form-section-title h3 {
    margin: 0 0 7px;
    color: #1769aa;
    font-size: 20px;
    font-weight: 800;
}

.form-section-title p {
    margin: 0;
    color: #7b8798;
    font-size: 13px;
    line-height: 1.7;
}


/* ================= VERTICAL FORM LAYOUT ================= */

/* Every field takes full width and appears below the previous field */

#serviceForm {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 21px;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.form-group label {
    margin-bottom: 10px;
    color: #26364e;
    font-size: 13px;
    font-weight: 700;
}


/* ================= INPUTS ================= */

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 14px 15px;
    border: 1px solid #dce4ee;
    border-radius: 8px;
    outline: none;
    background: #fbfcfe;
    color: #26364e;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.form-group textarea {
    min-height: 125px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1769aa;
    box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.09);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a2adba;
}


/* ================= VERTICAL OPTIONS ================= */

.option-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 15px;
    border: 1px solid #e4ebf3;
    border-radius: 8px;
    background: #f8fafd;
    color: #34445c;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-item:hover {
    border-color: #1769aa;
    background: #eef6ff;
}

.option-item input {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin: 0;
    accent-color: #1769aa;
    cursor: pointer;
}


/* ================= SERVICE FIELDS ================= */

.service-fields {
    display: none !important;
}

.service-fields.active {
    display: flex !important;
    flex-direction: column;
    gap: 21px;
    animation: formFade 0.35s ease;
}


/* ================= SUBMIT ENQUIRY BUTTON FIX ================= */

#serviceForm .submit-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: 100%;
    min-height: 58px;
    padding: 16px 24px;

    background-color: #1769aa !important;
    color: #ffffff !important;

    border: 2px solid #1769aa !important;
    border-radius: 10px;

    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 800;

    cursor: pointer;
    opacity: 1 !important;
    visibility: visible !important;

    box-shadow: 0 5px 15px rgba(23, 105, 170, 0.20);
    transition: all 0.3s ease;
}

#serviceForm .submit-btn span {
    color: #ffffff !important;
    font-size: 20px;
    transition: transform 0.3s ease;
}

#serviceForm .submit-btn:hover {
    background-color: #f47721 !important;
    border-color: #f47721 !important;
    color: #ffffff !important;
    box-shadow: 0 7px 20px rgba(244, 119, 33, 0.25);
}

#serviceForm .submit-btn:hover span {
    color: #ffffff !important;
    transform: translateX(5px);
}

#serviceForm .submit-btn:disabled {
    background-color: #1769aa !important;
    color: #ffffff !important;
    opacity: 0.65 !important;
    cursor: not-allowed;
}
/* ================= FORM MESSAGE ================= */

#formMessage {
    display: none;
    width: 100%;
    margin: 8px 0 0;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
}

#formMessage.success {
    display: block;
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

#formMessage.error {
    display: block;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
}


/* ================= ANIMATION ================= */

@keyframes formFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ================= TABLET ================= */

@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .service-image {
        height: 210px;
    }
}


/* ================= MOBILE ================= */

@media (max-width: 600px) {
    .scalehost-services {
        padding: 60px 5%;
    }

    .services-heading {
        margin-bottom: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-image {
        height: 210px;
    }

    .service-content {
        padding: 20px;
    }

    .enquiry-section {
        padding: 55px 5%;
    }

    .enquiry-container {
        padding: 28px 18px;
        border-radius: 12px;
    }

    .enquiry-heading {
        margin-bottom: 30px;
    }

    .form-section-title {
        margin-top: 28px;
    }

    .option-item {
        min-height: 46px;
    }
}