/* =========================================================
   Service Request Page
   Scoped styles - do not affect other Next.js pages
   ========================================================= */

.service-request-page {
    font-family: Arial, sans-serif;
    background-color: #f2f7ff;
    margin: 0;
    padding: 0;
    color: #212529;
}

.service-request-page *,
.service-request-page *::before,
.service-request-page *::after {
    box-sizing: border-box;
}

/* =========================================================
   Container / Grid
   ========================================================= */

.service-request-page .container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.service-request-page .container-fluid {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.service-request-page .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.service-request-page .row > * {
    padding-left: 15px;
    padding-right: 15px;
}

.service-request-page .justify-content-center {
    justify-content: center;
}

.service-request-page .col-lg-12 {
    width: 100%;
}

.service-request-page .col-lg-10 {
    width: 83.333333%;
}

.service-request-page .col-md-12 {
    width: 100%;
}

.service-request-page .col-md-6 {
    width: 50%;
}

.service-request-page .mt-5 {
    margin-top: 3rem;
}

.service-request-page .mt-3 {
    margin-top: 1rem;
}

.service-request-page .mb-3 {
    margin-bottom: 1rem;
}

/* =========================================================
   Header
   ========================================================= */

.service-request-page .header {
    background-color: #f2f7ff;
    border-bottom-color: rgb(216, 216, 216);
    padding: 0 40px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: rgb(216, 216, 216) 0 0 0;
}

.service-request-page .imgWrap {
    max-width: 200px;
    margin: 0;
}

.service-request-page .imgWrap a {
    display: inline-block;
    width: 100%;
}

.service-request-page .imgWrap img {
    width: 160px;
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================================
   Hero
   ========================================================= */

.service-request-page .hero-section {
    position: relative;
    background: url("/images/banner-01.png") no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 135px 0;
    text-align: center;
}

.service-request-page .hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.service-request-page .hero-section .container {
    position: relative;
    z-index: 2;
}

.service-request-page .section-title {
    text-align: left;
}

.service-request-page .section-title h1 {
    font-size: 4rem;
    margin: 0;
    color: #fff;
}

/* =========================================================
   Main Service Request Wrapper
   ========================================================= */

.service-request-page .servicerequestWrap {
    padding: 20px;
    width: 100%;
    margin: 20px 0 80px 0;
}

.service-request-page .servicerequestWrap .reqWrapInner {
    max-width: 95%;
    margin: 0 auto;
}

/* =========================================================
   Form
   ========================================================= */

.service-request-page form {
    display: flex;
    flex-direction: column;
}

.service-request-page label {
    font-weight: bold;
}

.service-request-page input,
.service-request-page textarea,
.service-request-page select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}

.service-request-page textarea {
    height: 80px;
    min-height: 120px;
    resize: none;
}

.service-request-page input:focus,
.service-request-page select:focus,
.service-request-page textarea:focus,
.service-request-page button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* =========================================================
   Form Sections
   ========================================================= */

.service-request-page .sectionWrap {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.service-request-page .form-section {
    margin-bottom: 12px;
    display: none;
}

.service-request-page .formHeadSec {
    padding: 15px;
    background: #198754;
}

.service-request-page .form-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    display: block;
}

/* =========================================================
   Form Fields
   ========================================================= */

.service-request-page #srForm .form-field {
    margin: 0 0 15px 0;
}

.service-request-page .form-field {
    position: relative;
}

.service-request-page .invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

/* =========================================================
   System ID Verification
   ========================================================= */

.service-request-page .input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.service-request-page .input-group > input {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
}

.service-request-page .input-group-append {
    display: flex;
    align-items: center;
}

.service-request-page .verify-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 3px 12px;
    position: absolute;
    right: 8px;
    bottom: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    min-width: 65px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s;
    z-index: 2;
}

.service-request-page .verify-btn:hover {
    background-color: #0069d9;
}

.service-request-page .verify-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.service-request-page #verificationStatus {
    position: absolute;
    right: 8px;
    bottom: 8px;
}

.service-request-page .text-success {
    position: absolute;
    right: 8px;
    bottom: 8px;
}

/* =========================================================
   Select
   ========================================================= */

.service-request-page .select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.service-request-page .select-wrapper select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 4px;
    background: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.service-request-page .select-wrapper::after {
    content: "▼";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #333;
    pointer-events: none;
}

/* =========================================================
   Remarks / Character Count
   ========================================================= */

.service-request-page .textarea-wrapper {
    position: relative;
}

.service-request-page .char-count-inside {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 12px;
    color: #666;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
}

/* =========================================================
   Hidden Sections
   ========================================================= */

.service-request-page .hidden {
    display: none;
}

/* =========================================================
   Documents
   ========================================================= */

.service-request-page #docList {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.service-request-page #docList li {
    background: #83c5be;
    text-align: center;
    color: #fff;
    border-radius: 20px;
    padding: 2px 14px;
    width: fit-content;
    margin-top: 10px;
}

/* =========================================================
   Delivery
   ========================================================= */

.service-request-page .delihiveryfield {
    display: flex;
    flex-direction: column;
}

.service-request-page .delihiveryfield .delihiveryfieldWrap {
    display: block;
    align-items: center;
    gap: 15px;
}

.service-request-page .delihiveryfieldWrap label {
    margin-right: 15px;
    font-size: 16px;
    cursor: pointer;
}

.service-request-page .delihiveryfield input[type="radio"] {
    width: auto;
    margin: 0 5px 0 0;
}

/* =========================================================
   Payment
   ========================================================= */

.service-request-page .payment-section {
    margin-top: 20px;
}

.service-request-page .payment-note {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    margin-top: 12px;
    font-size: 14px;
}

.service-request-page .payment-note a {
    font-size: 14px;
    color: #1a73e8;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin: 12px 0;
    padding-right: 18px;
}

.service-request-page .payment-note a:hover {
    text-decoration: underline;
}

.service-request-page .payment-required {
    background-color: #d4edda;
    color: #155724;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

/* =========================================================
   Submit Button
   ========================================================= */

.service-request-page .loginBtnWrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.service-request-page .loginBtnService {
    background: #198754;
    padding: 10px 8px;
    border-radius: 8px;
    min-width: 90px;
    border: 0;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

.service-request-page .loginBtnService:hover {
    background: #157347;
}

/* =========================================================
   Tracking
   ========================================================= */

.service-request-page .servicereqTracking {
    background: #d9edf7;
    border-color: #bce8f1;
    padding: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.service-request-page .servicereqTracking p {
    margin-bottom: 0;
    color: #000;
    font-size: 16px;
}

.service-request-page .servicereqTracking p a.clickHere {
    background: #5586a9;
    border-radius: 12px;
    padding: 8px;
    text-decoration: none;
    color: #fff;
    min-width: 110px;
    display: inline-block;
    text-align: center;
}

.service-request-page .servicereqTracking p a.clickHere:hover {
    background: #426b88;
}

/* =========================================================
   Loading
   ========================================================= */

.service-request-page .spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.service-request-page .verification-success {
    margin-top: 6px;
    color: #198754;
    font-size: 14px;
    font-weight: 600;
}

.service-request-page .verification-error {
    margin-top: 6px;
    color: #dc3545;
    font-size: 14px;
    font-weight: 600;
}

/* =========================================================
   Service Request - Layout Fixes
   ========================================================= */

/* Keep all service request sections compact and aligned */
.service-request-page .sectionWrap {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 14px;
    padding: 0;
}

/* Prevent Bootstrap/row flex behaviour from shrinking section headers */
.service-request-page .sectionWrap > .formHeadSec {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Section header */
.service-request-page .formHeadSec {
    display: block;
    width: 100%;
    padding: 10px 14px;
    margin: 0;
    background: #198754;
    border-radius: 12px 12px 0 0;
    box-sizing: border-box;
}

/* Header text */
.service-request-page .form-section-title {
    display: block;
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

/* Form content inside each section */
.service-request-page .sectionWrap > .row {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    padding: 10px 8px 2px;
}

/* Form fields */
.service-request-page .form-field {
    margin-bottom: 10px;
}

/* Remove excessive Bootstrap row gutters from the section layout */
.service-request-page .sectionWrap .row {
    --bs-gutter-x: 16px;
    --bs-gutter-y: 0;
}

/* Charges section */
.service-request-page #chargesDetails {
    overflow: hidden;
}

.service-request-page #chargesDetails > .row {
    padding-top: 10px;
    padding-bottom: 2px;
}

/* Document Requirements section */
.service-request-page #documentRequirementsSection {
    overflow: hidden;
}

.service-request-page #documentRequirementsSection > .row {
    padding-top: 10px;
    padding-bottom: 2px;
}

/* Delivery section */
.service-request-page #deliveryInfoSection {
    overflow: hidden;
}

.service-request-page #deliveryInfoSection > .row {
    padding-top: 10px;
    padding-bottom: 2px;
}

/* Additional details */
.service-request-page #additionalDetailsSection {
    overflow: hidden;
}

.service-request-page #additionalDetailsSection > .row {
    padding-top: 10px;
    padding-bottom: 2px;
}

/* Document list */
.service-request-page #docList {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
}

.service-request-page #docList li {
    margin: 0;
    padding: 4px 10px;
    background: #83c5be;
    color: #fff;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.3;
}

/* Attachment area */
.service-request-page #attachmentField {
    margin-bottom: 10px;
}

/* Keep file input visually aligned with other controls */
.service-request-page input[type="file"] {
    margin-top: 5px;
    padding: 6px 8px;
}

/* Submit button spacing */
.service-request-page .loginBtnWrap {
    margin-top: 4px;
    margin-bottom: 18px;
}

/* Tracking area */
.service-request-page .servicereqTracking {
    margin-top: 8px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 991px) {
    .service-request-page .col-lg-10 {
        width: 100%;
    }
}

/* Desktop spacing */
@media (min-width: 768px) {
    .service-request-page .sectionWrap {
        margin-bottom: 12px;
    }

    .service-request-page .formHeadSec {
        padding: 9px 14px;
    }

    .service-request-page .sectionWrap > .row {
        padding: 9px 8px 2px;
    }
}

@media (max-width: 767px) {
    .service-request-page .container {
        max-width: 100%;
    }

    .service-request-page .header {
        padding: 0 20px;
    }

    .service-request-page .col-md-6 {
        width: 100%;
    }

    .service-request-page .hero-section {
        padding: 90px 0;
    }

    .service-request-page .hero-section h1,
    .service-request-page .section-title h1 {
        font-size: 2.5rem !important;
    }

    .service-request-page .input-group-append {
        width: 100%;
        margin-top: 10px;
    }

    .service-request-page .input-group-append button {
        width: 100%;
    }

    .service-request-page .verify-btn {
        width: 100%;
        position: static;
        margin-top: 10px;
    }

    .service-request-page .delihiveryfield .delihiveryfieldWrap {
        flex-wrap: wrap;
        gap: 10px;
    }

    .service-request-page .servicereqTracking {
        align-items: flex-start;
    }

    .service-request-page .sectionWrap {
        margin-bottom: 10px;
    }

    .service-request-page .formHeadSec {
        padding: 9px 12px;
    }

    .service-request-page .sectionWrap > .row {
        padding: 8px 4px 2px;
    }
}

/* =========================================================
   Accessibility
   ========================================================= */

@media (prefers-contrast: high) {
    .service-request-page .form-section-title {
        border-bottom: 3px solid #000;
    }

    .service-request-page button {
        border: 2px solid;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-request-page *,
    .service-request-page *::before,
    .service-request-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

