/* =========================================================
   BASE RESET
========================================================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial,
        Helvetica, sans-serif;
    background: #f8f9ff;
    color: #17233c;
    overflow-x: hidden;
    /* Safari fix */
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   MAIN PAGE WRAPPER
   — full viewport, two columns side by side
========================================================= */

.page-wrapper {
    display: flex;
    flex-direction: row;

    width: 100%;
    height: 100vh;
    min-height: 100vh;

    overflow: hidden;
}


/* =========================================================
   LEFT SERVICES PANEL  (58%)
========================================================= */

.services-panel {
    position: relative;

    flex: 0 0 58%;
    width: 58%;
    height: 100vh;

    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 80px 6% 50px;

    background:
        radial-gradient(
            circle at 18% 20%,
            rgba(255, 255, 255, 0.62),
            transparent 24%
        ),
        linear-gradient(135deg, #e8e1f8 0%, #eee9fb 52%, #f7eef6 100%);
}

/* slide background layer */
.services-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 18% 20%,
            rgba(255, 255, 255, 0.62),
            transparent 24%
        ),
        linear-gradient(135deg, #e8e1f8 0%, #eee9fb 52%, #f7eef6 100%);
    transform: translateX(100%);
    z-index: 0;
    pointer-events: none;
}

.services-panel.slide-next::before {
    animation: backgroundNext 0.75s ease both;
}
.services-panel.slide-prev::before {
    animation: backgroundPrev 0.75s ease both;
}

@keyframes backgroundNext {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(0); }
}
@keyframes backgroundPrev {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}


/* =========================================================
   LOGO
========================================================= */

.company-logo {
    position: absolute;
    top: 18px;
    left: 24px;
    z-index: 20;
    display: flex;
    align-items: center;
    transition: transform 0.65s ease, opacity 0.45s ease;
    pointer-events: auto;
}

.company-logo img {
    width: 150px;
    height: auto;
    display: block;
    object-fit: contain;
}


/* =========================================================
   DECORATIVE BUBBLES
========================================================= */

.bubble {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(
            circle at 70% 25%,
            rgba(255, 255, 255, 0.96) 0%,
            rgba(246, 240, 255, 0.90) 25%,
            rgba(190, 178, 225, 0.62) 68%,
            rgba(150, 135, 200, 0.45) 100%
        );
    box-shadow:
        inset -18px -20px 35px rgba(120, 100, 170, 0.12),
        inset 15px 12px 25px rgba(255, 255, 255, 0.45),
        0 18px 35px rgba(120, 100, 170, 0.10);
    transition: transform 0.7s ease, opacity 0.45s ease;
}

.bubble-one   { width: 230px; height: 230px; top: 17%;  left: 8%;   opacity: 0.92; }
.bubble-two   { width: 60px;  height: 60px;  top: 31%;  right: 12%; opacity: 0.82; }
.bubble-three { width: 120px; height: 120px; bottom: 16%; left: -25px; opacity: 0.75; }
.bubble-four  { width: 115px; height: 115px; bottom: 9%;  right: 12%; opacity: 0.78; }
.bubble-five  { width: 72px;  height: 72px;  top: 61%;  right: 3%;  opacity: 0.75; }


/* =========================================================
   WHOLE LEFT SLIDE TRANSITION
========================================================= */

.services-panel.slide-next .company-logo,
.services-panel.slide-next .bubble,
.services-panel.slide-next .services-slider {
    animation: slideWholeNext 0.75s ease both;
}

.services-panel.slide-prev .company-logo,
.services-panel.slide-prev .bubble,
.services-panel.slide-prev .services-slider {
    animation: slideWholePrev 0.75s ease both;
}

@keyframes slideWholeNext {
    0%   { transform: translateX(0);     opacity: 1; }
    45%  { transform: translateX(-80px); opacity: 0; }
    55%  { transform: translateX(80px);  opacity: 0; }
    100% { transform: translateX(0);     opacity: 1; }
}

@keyframes slideWholePrev {
    0%   { transform: translateX(0);     opacity: 1; }
    45%  { transform: translateX(80px);  opacity: 0; }
    55%  { transform: translateX(-80px); opacity: 0; }
    100% { transform: translateX(0);     opacity: 1; }
}


/* =========================================================
   SERVICES SLIDER WRAPPER
========================================================= */

.services-slider {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 820px;
    /* Use vh-based height so it scales with screen */
    height: clamp(340px, 52vh, 460px);
    display: flex;
    align-items: center;
}


/* =========================================================
   SERVICE SLIDES
========================================================= */

.service-slide {
    width: 100%;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(70px, -50%);
    transition:
        opacity 0.45s ease,
        transform 0.55s ease,
        visibility 0.45s ease;
}

.service-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}


/* =========================================================
   SERVICE LABEL — "OUR IT SERVICES" bigger
========================================================= */

.service-label {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 5px;
    color: #f27630;
}


/* =========================================================
   SERVICE HEADING
========================================================= */

.service-slide h1 {
    max-width: 760px;
    margin-bottom: 14px;
    font-size: clamp(36px, 4.2vw, 54px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: #17243d;
}


/* =========================================================
   SERVICE DESCRIPTION
========================================================= */

.service-slide p {
    max-width: 620px;
    margin-bottom: 18px;
    font-size: clamp(13px, 1.1vw, 15px);
    line-height: 1.6;
    color: #526b89;
}


/* =========================================================
   EXTRA TAGLINE
========================================================= */

.service-slide::after {
    content:
        "Professional • Reliable • Business-focused\A"
        "Quality solutions • Responsive support • Business growth";
    white-space: pre-line;
    display: block;
    margin-top: 12px;
    max-width: 600px;
    font-size: 11.5px;
    line-height: 1.8;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #7b6c9d;
    opacity: 0.95;
}


/* =========================================================
   STATS BADGES
========================================================= */

.service-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    z-index: 5;
    position: relative;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.70);
    border: 1px solid rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(120, 100, 170, 0.10);
}

.stat-badge .stat-num {
    font-size: 16px;
    font-weight: 800;
    color: #f27630;
    line-height: 1;
}

.stat-badge .stat-txt {
    font-size: 10.5px;
    font-weight: 700;
    color: #526b89;
    letter-spacing: 0.4px;
    line-height: 1.3;
}


/* =========================================================
   CONTACT NOW BUTTON
========================================================= */

.service-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 155px;
    padding: 12px 22px;
    border-radius: 50px;
    background: #ff7518;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 12px 25px rgba(255, 117, 24, 0.22);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.service-contact:hover {
    background: #ed6811;
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(255, 117, 24, 0.30);
}

.service-contact i {
    font-size: 13px;
    transition: transform 0.25s ease;
}

.service-contact:hover i {
    transform: translateX(5px);
}


/* =========================================================
   SLIDER ARROWS
========================================================= */

.slider-arrows {
    position: absolute;
    z-index: 30;
    left: 7%;
    bottom: 24px;
    display: flex;
    gap: 12px;
}

.slider-arrow {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.80);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.60);
    color: #6c5c91;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

.slider-arrow:hover {
    background: #ffffff;
    color: #f27630;
    transform: translateY(-3px);
}


/* =========================================================
   INDICATORS
========================================================= */

.slider-indicators {
    position: absolute;
    right: 7%;
    bottom: 40px;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 7px;
}

.indicator {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.70);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}

.indicator.active {
    width: 28px;
    border-radius: 10px;
    background: #f27630;
}


/* =========================================================
   RIGHT CONTACT PANEL  (42%)
   — flex column so card + strip fill full height
========================================================= */

.contact-panel {
    position: relative;
    flex: 0 0 42%;
    width: 42%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    background:
        linear-gradient(135deg, #ffffff 0%, #fefbff 45%, #f0f5ff 100%);
}


/* =========================================================
   CONTACT CARD
   — flex:1 fills remaining space, overflow-y scrolls form
========================================================= */

.contact-card {
    flex: 1;
    min-height: 0;
    width: 100%;
    padding: 28px 26px 16px;
    background: rgba(255, 255, 255, 0.97);
    border-left: 1px solid rgba(225, 229, 239, 0.9);
    box-shadow: -8px 0 40px rgba(75, 95, 135, 0.08);
    position: relative;
    z-index: 5;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   FORM HEADER
========================================================= */

.form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.form-header-text {
    flex: 1;
    min-width: 0;
}

.form-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff781b;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(255, 120, 27, 0.22);
}

.form-icon i {
    font-size: 20px;
}

.form-header h2 {
    margin-bottom: 2px;
    font-size: 20px;
    line-height: 1.2;
    color: #17243d;
}

.form-header p {
    font-size: 12px;
    line-height: 1.4;
    color: #657b99;
}


/* =========================================================
   PAY NOW — TOP RIGHT HEADER BUTTON
========================================================= */

.pay-now-header-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff7518, #f05a00);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(255, 117, 24, 0.32);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    letter-spacing: 0.4px;
}

.pay-now-header-btn i {
    font-size: 13px;
}

.pay-now-header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 117, 24, 0.44);
}


/* =========================================================
   DIVIDER
========================================================= */

.form-divider {
    width: 100%;
    height: 1px;
    margin-bottom: 12px;
    background: #e8ebf1;
    flex-shrink: 0;
}


/* =========================================================
   FORM
========================================================= */

.contact-form {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group {
    margin-bottom: 10px;
}

.full-width {
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #607695;
}

.form-group label i {
    margin-right: 6px;
    color: #ff781b;
}


/* =========================================================
   INPUTS
========================================================= */

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid #e0e5ed;
    border-radius: 11px;
    background: #ffffff;
    color: #17243d;
    font-size: 13.5px;
    outline: none;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
    /* Safari fix */
    -webkit-appearance: none;
    appearance: none;
}

.form-group input,
.form-group select {
    height: 42px;
    padding: 0 14px;
}

.form-group textarea {
    height: 76px;
    min-height: 60px;
    padding: 10px 14px;
    resize: none;
    flex: 1;
}

/* Message group grows to fill remaining space, but cap max so buttons stay close */
.form-group.full-width.message-group {
    flex: none;             /* Prevents flexbox from squeezing this container */
    max-height: 130px;      /* Capping the height is still fine */
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.form-group.full-width.message-group textarea {
    flex: 1;
    height: auto;
    min-height: 60px;
    max-height: 130px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9baabd;
}

.form-group select {
    cursor: pointer;
    padding-right: 40px;
    background-image:
        linear-gradient(45deg,  transparent 50%, #657b99 50%),
        linear-gradient(135deg, #657b99 50%,     transparent 50%);
    background-position:
        calc(100% - 18px) 17px,
        calc(100% - 12px) 17px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #c1b2e2;
    background: #fdfbff;
    box-shadow: 0 0 0 4px rgba(170, 150, 215, 0.13);
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.submit-button {
    width: 100%;
    height: 48px;
    margin-top: 2px;
    border: none;
    border-radius: 50px;
    background: #ff7518;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(255, 117, 24, 0.20);
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.submit-button:hover {
    background: #ed6811;
    transform: translateY(-2px);
}


/* =========================================================
   FORM ACTION BUTTONS
========================================================= */

.form-action-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    flex-shrink: 0;
    padding-top: 0;
}

.form-action-buttons .action-button {
    flex: 1;
    min-width: 0;
}


/* =========================================================
   CONTACT DETAILS STRIP
   — flush at bottom of contact panel
========================================================= */

.contact-details-strip {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: stretch;

    background: linear-gradient(135deg, #fff8f4 0%, #fff2eb 100%);
    border-top: 1.5px solid rgba(242, 118, 48, 0.18);

    padding: 0;
    height: 70px;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.contact-detail-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: inherit;
    padding: 0 14px;
    height: 100%;
    min-width: 0;
    transition: background 0.2s ease;
}

.contact-detail-item:hover {
    background: rgba(255, 117, 24, 0.07);
}

.contact-detail-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #ff7518, #f27630);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(255, 117, 24, 0.28);
}

.contact-detail-icon i {
    font-size: 13px;
}

.contact-detail-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.contact-detail-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #f27630;
    text-transform: uppercase;
    line-height: 1;
}

.contact-detail-value {
    font-size: 11px;
    font-weight: 600;
    color: #17243d;
    overflow: hidden;
    line-height: 1.3;
}

.contact-detail-divider {
    width: 1px;
    height: 36px;
    background: rgba(242, 118, 48, 0.20);
    flex-shrink: 0;
}


/* =========================================================
   SOCIAL MEDIA — fixed right side
========================================================= */

.social-links {
    position: fixed;
    left: 14px;
    bottom: 82px;       /* above the strip */
    top: auto;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.social {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(45, 75, 110, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.social:hover {
    transform: scale(1.07);
    box-shadow: 0 12px 28px rgba(45, 75, 110, 0.25);
}

.social i { font-size: 17px; }

.facebook  { background: #1877f2; }
.linkedin  { background: #0a66c2; }
.instagram { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.whatsapp  { background: #20c96b; }


/* =========================================================
   RESUME UPLOAD (Job form only)
========================================================= */

.resume-upload-group input[type="file"] {
    padding: 8px 14px;
    height: auto;
    cursor: pointer;
}

.resume-help {
    font-size: 11px;
    color: #8899aa;
    margin-top: 4px;
    display: block;
}


/* =========================================================
   LARGE DESKTOP  (≥ 1600px)
========================================================= */

@media (min-width: 1600px) {

    .service-label {
        font-size: 16px;
        letter-spacing: 6px;
    }

    .service-slide h1 {
        font-size: 62px;
    }

    .service-slide p {
        font-size: 16px;
    }

    .services-slider {
        height: clamp(380px, 50vh, 500px);
    }

    .contact-card {
        padding: 28px 34px 20px;
    }

    .form-group input,
    .form-group select {
        height: 48px;
        font-size: 15px;
    }

    .form-group textarea {
        height: 90px;
    }

    .submit-button {
        height: 52px;
        font-size: 16px;
    }

    .contact-details-strip {
        height: 78px;
        padding: 0 24px;
    }

    .contact-detail-value {
        font-size: 12.5px;
    }

    .social-links {
        bottom: 90px;
    }
}


/* =========================================================
   TABLET LANDSCAPE  (≤ 1366px)
========================================================= */

@media (max-width: 1366px) {

    .services-panel {
        flex-basis: 56%;
        width: 56%;
    }

    .contact-panel {
        flex-basis: 44%;
        width: 44%;
    }

    .service-slide h1 {
        font-size: clamp(34px, 3.8vw, 50px);
    }

    .contact-card {
        padding: 18px 22px 14px;
    }

    .form-group textarea {
        height: 70px;
    }

    .social-links {
        left: 12px;
        bottom: 80px;
    }
}


/* =========================================================
   TABLET PORTRAIT  (≤ 1100px)
========================================================= */

@media (max-width: 1100px) {

    .services-panel {
        flex-basis: 54%;
        width: 54%;
        padding: 80px 5% 50px;
    }

    .contact-panel {
        flex-basis: 46%;
        width: 46%;
    }

    .service-slide h1 {
        font-size: clamp(30px, 3.6vw, 46px);
    }

    .contact-card {
        padding: 16px 20px 12px;
    }

    .form-group input,
    .form-group select {
        height: 40px;
    }

    .form-group textarea {
        height: 68px;
    }

    .form-group {
        margin-bottom: 8px;
    }

    .submit-button {
        height: 46px;
    }

    .contact-details-strip {
        height: 68px;
        padding: 0 12px;
    }

    .contact-detail-value {
        font-size: 11px;
    }

    .social-links {
        left: 10px;
        bottom: 76px;
    }

    .social {
        width: 40px;
        height: 40px;
    }
}


/* =========================================================
   SMALL SCREEN / STACKED  (≤ 900px)
   — panels stack vertically
========================================================= */

@media (max-width: 900px) {

    html,
    body {
        overflow: auto;
        height: auto;
    }

    .page-wrapper {
        height: auto;
        min-height: 100vh;
        flex-direction: column;
        overflow: visible;
    }

    .services-panel {
        width: 100%;
        flex-basis: auto;
        height: 600px;
        min-height: 600px;
        padding: 100px 7% 90px;
    }

    .contact-panel {
        width: 100%;
        flex-basis: auto;
        height: auto;
        min-height: auto;
        overflow: visible;
    }

    .contact-card {
        border-left: none;
        border-top: 1px solid rgba(225, 229, 239, 0.9);
        border-radius: 0;
        padding: 24px 7% 16px;
        height: auto;
        overflow-y: visible;
        flex: none;
    }

    .contact-form {
        flex: none;
    }

    .form-group.full-width.message-group {
        flex: none;
    }

    .form-group.full-width.message-group textarea {
        flex: none;
        height: 100px;
    }

    .contact-details-strip {
        flex-direction: column;
        height: auto;
        padding: 10px 16px;
        gap: 0;
    }

    .contact-detail-divider {
        width: 100%;
        height: 1px;
        margin: 0;
        background: rgba(242, 118, 48, 0.18);
    }

    .contact-detail-item {
        width: 100%;
        padding: 7px 6px;
        height: auto;
        justify-content: flex-start;
        align-items: center;
    }

    .services-slider {
        height: 370px;
    }

    .service-slide h1 {
        font-size: clamp(34px, 8vw, 50px);
    }

    .company-logo {
        left: 20px;
        top: 16px;
    }

    .company-logo img {
        width: 140px;
    }

    .social-links {
        left: 14px;
        bottom: 24px;
    }

    .social {
        width: 42px;
        height: 42px;
    }
}


/* =========================================================
   MOBILE  (≤ 600px)
========================================================= */

@media (max-width: 600px) {

    .services-panel {
        height: 570px;
        min-height: 570px;
        padding: 95px 18px 85px;
    }

    .company-logo {
        left: 16px;
        top: 14px;
    }

    .company-logo img {
        width: 130px;
    }

    .services-slider {
        height: 380px;
    }

    .service-label {
        font-size: 12px;
        letter-spacing: 3.5px;
    }

    .service-slide h1 {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .service-slide p {
        font-size: 13.5px;
    }

    .service-slide::after {
        font-size: 11px;
    }

    .service-contact {
        padding: 11px 18px;
        font-size: 14px;
    }

    .slider-arrows {
        left: 18px;
        bottom: 22px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .slider-indicators {
        right: 18px;
        bottom: 38px;
    }

    .contact-card {
        padding: 22px 16px 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-details-strip {
        flex-direction: column;
        height: auto;
        padding: 10px 16px;
        gap: 2px;
        border-left: 3px solid #ff7518;
        border-top: 1px solid rgba(242, 118, 48, 0.15);
    }

    .contact-detail-divider {
        width: 100%;
        height: 1px;
        margin: 2px 0;
        background: rgba(242, 118, 48, 0.18);
    }

    .contact-detail-item {
        width: 100%;
        padding: 7px 6px;
        height: auto;
        justify-content: flex-start;
        align-items: center;
    }

    .contact-detail-value {
        font-size: 12px;
        white-space: normal;
    }

    .social-links {
        left: 8px;
        bottom: 20px;
        gap: 7px;
    }

    .social {
        width: 38px;
        height: 38px;
    }

    .social i {
        font-size: 15px;
    }

    .bubble-one   { width: 170px; height: 170px; left: -30px; top: 23%; }
    .bubble-two   { width: 45px;  height: 45px;  right: 8%; }
    .bubble-three { width: 90px;  height: 90px; }
    .bubble-four  { width: 80px;  height: 80px; }
    .bubble-five  { width: 55px;  height: 55px; }

    .service-stats { gap: 8px; }
    .stat-badge    { padding: 8px 12px; }
    .stat-badge .stat-num { font-size: 14px; }
    .stat-badge .stat-txt { font-size: 10px; }
}


/* =========================================================
   VERY SMALL MOBILE  (≤ 400px)
========================================================= */

@media (max-width: 400px) {

    .services-panel {
        padding-left: 14px;
        padding-right: 14px;
    }

    .service-slide h1 { font-size: 28px; }
    .service-slide p  { font-size: 13px; }

    .slider-indicators { display: none; }

    .contact-card { padding: 16px 12px; }
}


/* =========================================================
   SAFARI / WEBKIT SPECIFIC FIXES
========================================================= */

/* Safari doesn't support gap in flex properly in older versions */
@supports not (gap: 10px) {
    .service-stats .stat-badge + .stat-badge { margin-left: 10px; }
    .form-action-buttons .action-button + .action-button { margin-left: 10px; }
}

/* Safari backdrop-filter support */
@supports (-webkit-backdrop-filter: blur(10px)) {
    .stat-badge {
        -webkit-backdrop-filter: blur(8px);
    }
    .slider-arrow {
        -webkit-backdrop-filter: blur(10px);
    }
}


/* =========================================================
   PAYMENT MODAL — OVERLAY
========================================================= */

.payment-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(15, 20, 40, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    padding: 16px;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.payment-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   PAYMENT MODAL — CARD
========================================================= */

.payment-modal-card {
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    background: #ffffff;
    border-radius: 22px;
    box-shadow:
        0 32px 80px rgba(15, 20, 40, 0.22),
        0 8px 24px rgba(255, 117, 24, 0.10);

    padding: 28px 28px 24px;

    transform: translateY(24px) scale(0.97);
    transition: transform 0.3s ease;
}

.payment-modal-overlay.active .payment-modal-card {
    transform: translateY(0) scale(1);
}


/* =========================================================
   MODAL HEADER
========================================================= */

.payment-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.payment-modal-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff7518, #f05a00);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(255, 117, 24, 0.28);
}

.payment-modal-icon i {
    font-size: 21px;
}

.payment-modal-header > div:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.payment-modal-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: #17243d;
    margin-bottom: 2px;
    line-height: 1.2;
}

.payment-modal-header p {
    font-size: 12.5px;
    color: #657b99;
    line-height: 1.4;
}

.payment-modal-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f3f4f8;
    color: #657b99;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.payment-modal-close:hover {
    background: #ffe8d9;
    color: #f05a00;
    transform: rotate(90deg);
}


/* =========================================================
   MODAL DIVIDER
========================================================= */

.payment-modal-divider {
    width: 100%;
    height: 1px;
    background: #e8ebf1;
    margin-bottom: 18px;
}


/* =========================================================
   PAYMENT FORM
========================================================= */

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.payment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.payment-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.payment-form-group.full {
    width: 100%;
}

.payment-form-group label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #607695;
    margin-bottom: 5px;
    display: block;
}

.payment-form-group input,
.payment-form-group select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid #e0e5ed;
    border-radius: 11px;
    background: #ffffff;
    color: #17243d;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.payment-form-group input:focus,
.payment-form-group select:focus {
    border-color: #f27630;
    box-shadow: 0 0 0 4px rgba(242, 118, 48, 0.12);
}

.payment-form-group input::placeholder {
    color: #9baabd;
}

.payment-form-group select {
    cursor: pointer;
    padding-right: 40px;
    background-image:
        linear-gradient(45deg,  transparent 50%, #657b99 50%),
        linear-gradient(135deg, #657b99 50%,     transparent 50%);
    background-position:
        calc(100% - 18px) 18px,
        calc(100% - 12px) 18px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}


/* Amount with ₹ prefix — prefix removed, clean input */

.amount-input-wrap {
    display: none; /* not used anymore */
}


/* Phone number with country code */

.phone-input-wrap {
    display: flex;
    gap: 0;
    border: 1.5px solid #e0e5ed;
    border-radius: 11px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    background: #ffffff;
}

.phone-input-wrap:focus-within {
    border-color: #f27630;
    box-shadow: 0 0 0 4px rgba(242, 118, 48, 0.12);
}

.country-code-select {
    flex: 0 0 auto;
    width: auto;
    max-width: 46%;
    min-width: 130px;
    height: 44px;
    padding: 0 28px 0 12px;
    border: none !important;
    border-right: 1.5px solid #e8ebf1 !important;
    border-radius: 0 !important;
    background-color: #fff8f4;
    color: #17243d;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    background-image:
        linear-gradient(45deg,  transparent 50%, #f27630 50%),
        linear-gradient(135deg, #f27630 50%,     transparent 50%);
    background-position:
        calc(100% - 13px) 18px,
        calc(100% - 8px)  18px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    /* clip long text with ellipsis */
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.country-code-select:focus {
    border-color: transparent !important;
    box-shadow: none !important;
    background-color: #fff3eb;
}

.phone-number-input {
    flex: 1;
    height: 44px;
    padding: 0 14px !important;
    border: none !important;
    border-radius: 0 !important;
    background: #ffffff;
    outline: none;
    font-size: 14px;
    color: #17243d;
    box-shadow: none !important;
    min-width: 0;
}

.phone-number-input::placeholder {
    color: #9baabd;
}

/* Tighter on small modal screens */
@media (max-width: 560px) {
    .country-code-select {
        min-width: 110px;
        max-width: 44%;
        font-size: 12px;
        padding: 0 24px 0 10px;
    }
}


/* Secure note */

.payment-secure-note {
    font-size: 11.5px;
    color: #8899aa;
    text-align: center;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.payment-secure-note i {
    color: #f27630;
    font-size: 12px;
}


/* Submit button */

.payment-submit-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff7518, #f05a00);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 12px 30px rgba(255, 117, 24, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    letter-spacing: 0.3px;
}

.payment-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(255, 117, 24, 0.36);
}

.payment-submit-btn i:first-child {
    font-size: 14px;
}

.payment-submit-btn i:last-child {
    font-size: 13px;
}

/* Universal Button Spinner */
.btn-loading {
    position: relative;
    color: transparent !important; /* Hides the original text */
    pointer-events: none;
    opacity: 0.85;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin-loader 0.8s linear infinite;
}

@keyframes spin-loader {
    to { transform: rotate(360deg); }
}
/* =========================================================
   MODAL RESPONSIVE
========================================================= */

@media (max-width: 560px) {
    .payment-modal-card {
        padding: 20px 16px 20px;
        border-radius: 18px;
    }

    .payment-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .payment-modal-header h2 {
        font-size: 18px;
    }
}

/* =========================================================
   MODAL RESPONSIVE (mobile)
========================================================= */

@media (max-width: 768px) {
    .payment-modal-overlay {
        padding: 16px;
    }

    .payment-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .payment-modal-header {
        padding: 20px 20px 0;
    }

    .payment-modal-divider {
        margin: 16px 20px;
    }

    .payment-form {
        padding: 0 20px 20px;
    }
}