/* Component specific styles */

/* Navbar */
.nav-link {
    @apply text-gray-700 hover:text-black font-medium transition duration-300 relative;
}

.nav-link::after {
    content: '';
    @apply absolute left-0 bottom-[-2px] w-full h-[2px] bg-sky-500 scale-x-0 transition-transform duration-300 origin-left;
}

.nav-link:hover::after {
    @apply scale-x-100;
}

/* Service Card */
.service-icon {
    @apply w-12 h-12 mb-4 text-sky-500 transition-colors duration-300;
}

.service-card:hover .service-icon {
    @apply text-sky-700;
}

/* Footer Links */
.footer-link {
    @apply text-gray-400 hover:text-white transition duration-300 block py-1.5;
}

/* Form Styles */
.form-input {
    @apply w-full border border-gray-300 rounded px-4 py-3 focus:outline-none focus:ring-2 focus:ring-sky-500 transition duration-200 bg-gray-50;
}

.form-label {
    @apply block text-sm font-medium text-gray-700 mb-2;
}

/* =============================================
   Webflow-style Service List (grid-service-item)
   ============================================= */

.service-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.grid-service-item {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 2rem;
    padding: 2rem 0;
    text-decoration: none;
    color: inherit;
    position: relative;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.grid-service-item:hover {
    opacity: 1;
}

/* Column 1: number + description */
.gsi-col--desc {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gsi-col--desc .service-number {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.gsi-col--desc p {
    font-size: 1.3rem;
    color: #666;
    margin: 0;
    max-width: 260px;
}

/* Column 2: service title (centered) */
.gsi-col--title {
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-title {
    font-size: clamp(1.5rem, 3vw, 3.5rem);
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.grid-service-item:hover .service-title {
    color: var(#000, #55afe1);
}

/* Column 3: service icon */
.gsi-col--image.service-image-wrap {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-image {
    max-width: 180px;
    max-height: 180px;
    object-fit: contain;
    opacity: 0;
    /* GSAP initial state */
    transform: translate(0px, 0px);
    /* GSAP initial state */
    will-change: opacity, transform;
}

.grid-service-item:hover .service-image {
    opacity: 1;
    transform: scale(1);
}

/* Column 4: arrow icon */
.gsi-col--arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-arrow-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.grid-service-item:hover .service-arrow-icon {
    transform: rotate(-45deg);
}

/* Full-width divider spanning all columns */
.service-divider {
    grid-column: 1 / -1;
    height: 1px;
    background-color: #e5e7eb;
    width: 100%;
    margin-top: 0.25rem;
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
    .grid-service-item {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 0.75rem;
        padding: 1.5rem 0;
    }

    .gsi-col--title {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .gsi-col--image.service-image-wrap {
        display: none;
    }

    .service-image {
        opacity: 1;
        transform: scale(1);
    }
}

/* =============================================
   Request Form Section
   ============================================= */

.request-form-section {
    position: relative;
    background-color: #1a202c;
    overflow: hidden;
    padding: 6rem 0 0;
    color: white;
}

/* ── Tanker: absolute image, left side ── */
.decoration-two {
    position: absolute;
    /* height: 780px; */
    top: -300px;
    left: -199px;
    /* width: clamp(450px, 50vw, 800px); */
    max-height: 780px;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    z-index: 10;
    will-change: transform, opacity;
    overflow: visible;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

/* ── Box: absolute decoration, next to tanker (right side) ── */
.decoration-three {
    position: absolute;
    max-height: 100px;
    top: 243px;
    left: 563px;
    left: clamp(360px, 40vw, 560px);
    /* width: clamp(120px, 12vw, 200px); */
    height: auto;
    object-fit: contain;
    pointer-events: none;
    z-index: 12;
    will-change: transform;
}

/* ── Grid layout: spacer | form ── */
.grid-request-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    padding-bottom: 2rem;
}

@media (min-width: 1440px) {
    .decoration-two {
        max-height: 650px;
        top: -300px;
        left: -199px;
    }


}

@media (max-width: 1440px) {
    .decoration-two {
        max-height: 450px;
        top: -150px;
        left: -100px;
    }

    .decoration-three {
        left: 400px;
    }
}

@media (max-width: 1024px) {
    .grid-request-form {
        grid-template-columns: 1fr;
        padding-left: 0;
    }

    .decoration-two {
        opacity: 0.15;
        max-height: 350px;
        top: 0;
        left: -80px;
    }

    .decoration-three {
        display: none;
    }
}

@media (max-width: 768px) {
    .request-form-section {
        padding: 4rem 0 0;
    }

    .decoration-two {
        max-height: 300px;
        top: 50px;
        left: -50px;
        opacity: 0.1;
    }
}

/* ── Step items ── */
.grid-step {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Horizontal 3-col step layout (at bottom of section) */
.grid-step-horizontal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

@media (max-width: 768px) {
    .grid-step-horizontal {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.step-item {
    will-change: opacity, transform;
    /* GSAP controls opacity via fromTo */
}

.step-number-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #55afe1;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
}

.step-number-rounded {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(15, 204, 206, 0.4);
    background: transparent;
    flex-shrink: 0;
}

.heading-h6 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #fff;
}

.text-gray-3 {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* ── Right: form wrap ── */
.request-form-wrap {
    position: relative;
    z-index: 2;
}

.request-form-wrap h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
}

/* ── Input group layout (2-col pairs) ── */
.input-group-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    .input-group-wrap {
        grid-template-columns: 1fr;
    }
}

.input-group {
    display: flex;
    flex-direction: column;
}

/* ── Dark transparent inputs ── */
.request-input {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
    font-family: 'Instrument Sans', sans-serif;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
    width: 100%;
}

.request-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.request-input:focus {
    border-bottom-color: #55afe1;
    background: rgba(255, 255, 255, 0.12);
}

.request-input option {
    background: #1a202c;
    color: #fff;
}

/* ── Submit button ── */
.rf-submit-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #55afe1;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.15s ease;
    margin-top: 1rem;
}

.rf-submit-btn:hover {
    background: #0db8ba;
    transform: translateY(-1px);
}

.rf-submit-btn:active {
    transform: translateY(0);
}

/* ── White decoration at bottom ── */
.request-white-decoration {
    position: relative;
    z-index: 2;
    height: 60px;
    background: #fff;
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}