/*---------------------- common header------------- */
.sketch-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.sketch-left-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sketch-status-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* hero header */

.sketch-step-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

/* Container to hold the circle and the absolute tick */
.sketch-circle-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.sketch-step-circle {
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #e0e4e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: bold;
    color: #666;

    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

/* ACTIVE (violet stays as-is) */
.sketch-step-circle.active {
    background-color: #1a3673;
    color: white;
}

/* COMPLETED = GREEN */
.sketch-step-circle.completed {
    /* background-color: #1a3673; */
    background-color: var(--success-focus);
    color: var(--success-main);
}

.sketch-step-circle.active.completed {
    background-color: #1a3673;
    color: white;
}

/* ERROR = RED */
.sketch-step-circle.error {
    background-color: #ffe0dc;
    color: #cf1322;
}

.sketch-step-label {
    font-size: 15px;
    color: #2d3748;
}

.sketch-step-line {
    width: 50px;
    height: 1px;
    background-color: #ccc;
    margin: 0 5px;
}


/* ========================= */
/*  header bar*/
/* ========================= */

@media (max-width: 1200px) {

    .sketch-header {
        padding: 14px;
        justify-content: center;
        align-items: center;
    }

    .sketch-left-section {
        display: flex;
        flex-direction: row;
        gap: 15px;
    }

    .sketch-status-container {
        width: 100%;
        display: flex;
        justify-content: center;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        padding-bottom: 8px;
        gap: 8px;
    }

    .sketch-step-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        min-width: auto;
    }

    .sketch-step-label {
        display: none;
    }

    /* Bigger step circle (40 x 40) */
    .sketch-step-circle {
        width: 40px;
        height: 40px;
        font-size: 14px;
        z-index: 2;
    }

    /* Bigger connecting line */
    .sketch-step-line {
        display: block;
        width: 140px;
        height: 1px;
        background-color: #ccc;
        margin: 0 6px;
    }
}

@media (max-width: 768px) {

    .sketch-header {
        padding: 14px;
    }

    .sketch-status-container {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        padding-bottom: 8px;
        gap: 8px;
    }

    .sketch-step-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        min-width: auto;
    }

    .sketch-step-label {
        display: none;
    }

    /* Bigger step circle (40 x 40) */
    .sketch-step-circle {
        width: 40px;
        height: 40px;
        font-size: 14px;
        z-index: 2;
    }

    /* Bigger connecting line */
    .sketch-step-line {
        display: block;
        width: 90px;
        height: 1px;
        background-color: #ccc;
        margin: 0 6px;
    }
}

@media (max-width: 520px) {

    .sketch-header {
        padding: 10px;
    }

    .sketch-status-container {
        padding-bottom: 5px;
        gap: 0;
    }

    /* step circle size - (30 * 30) */
    .sketch-step-circle {
        width: 33px;
        height: 33px;
        font-size: 12px;
    }

    .sketch-step-line {
        width: 80px;
        height: 1px;
        margin: 0 4px;
    }
}

@media(max-width:420px) {
    .sketch-step-line {
        width: 65px;
    }
}




@media(max-width:390px) {
    .sketch-header {
        padding: 10px;
    }

    .sketch-status-container {
        padding-bottom: 3px;
    }

    .sketch-step-wrapper {
        gap: 0;
    }

    /* step circle size - (28 * 28) */
    .sketch-step-circle {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .sketch-step-line {
        width: 65px;
        margin: 0 1px;
    }
}

@media(max-width:340px) {
    .sketch-header {
        padding: 10px;
    }

    .sketch-status-container {
        padding-bottom: 3px;
    }

    .sketch-step-wrapper {
        gap: 0;
    }

    /* step circle size - (28 * 28) */
    .sketch-step-circle {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .sketch-step-line {
        width: 55px;
        margin: 0 1px;
    }
}




/* claim footer */
.sketch-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}

.footer-left,
.footer-right {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sketch-save-button,
.sketch-back-button,
.sketch-skip-button,
.sketch-draft-button {
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

/* Colors */
.sketch-save-button {
    background-color: #1a3673;
    color: white;
}

.sketch-save-button:hover {
    background-color: #172554;
}

.sketch-skip-button {
    background-color: #6b7280;
    color: #fff;
}

.sketch-skip-button:hover {
    background-color: #4b5563;
}

.sketch-draft-button {
    background-color: var(--warning-500);
    color: #fff;
    border: 1px solid var(--warning-500);
}

.sketch-back-button {
    background-color: transparent;
    color: #666;
    border: 1px solid #d9d9d9;
}

/* Mobile layout */
@media (max-width: 768px) {
    .sketch-footer {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    }

    .footer-left,
    .footer-right {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-bottom: 8px;
    }

    .sketch-save-button,
    .sketch-back-button,
    .sketch-skip-button,
    .sketch-draft-button {
        width: 100%;
        font-weight: 600;
        padding: 12px;
        font-size: 14px;
        justify-content: center;
    }
}




























/* over all card body */
@media (max-width: 767px) {

    .card .card-body,
    .card-body {
        padding: 0.4rem 0.4rem;
    }

    .card>.card-header {
        padding-left: 0.75rem !important;
    }

    .claim-ant-tabs .ant-tabs-nav {
        padding: 0 !important;
    }
}


/*------------------ SKECTH PLAN RESPONSIVE ---------------*/
.circle-action-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
}

.mobile-sketch-fullscreen {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}


/* Remove padding/margin from main layout */
body.sketch-fullscreen .main-content,
body.sketch-fullscreen .content-wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

/* Make sketch truly fullscreen */
body.sketch-fullscreen .mobile-sketch-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
}

.sketch-button-wrapper {
    text-align: center;
    width: 100%;
    padding: 10px 0;
    /* default padding */
}

/* Reduce padding on small screens */
@media (min-width: 769px) {
    .mobile-pdf-button {
        display: none !important;
    }

    .driver-details-section,
    .other-vehicles-section {
        margin-top: 2rem !important;
    }

    .other-vehicles-section .align-items-md-end {
        margin-bottom: 0.5rem !important;
    }

    .other-vehicles-section .row>* {
        margin-top: 1rem !important;
    }

    .mobile-pdf-button {
        display: none;
    }
}

/* Default (desktop) */
.mobile-full-btn {
    width: auto;
}

/* Default */
.mobile-card {
    background: transparent;
    box-shadow: none;
    border: none;
}

.mobile-pdf-button {
    display: none;
}

@media (max-width: 768px) {

    .mobile-card {
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 14px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    }

    .mobile-card p {
        text-align: center;
    }

    .mobile-card .ant-btn {
        font-size: 14px;
    }

    .pdf-wrapper {
        display: none;
        /* hide iframe on mobile */
    }

    .mobile-full-btn {
        width: 100% !important;
        /* all buttons same width */
        max-width: 150px;
        /* optional: limit width */
    }

    .mobile-pdf-button,
    .col-12.col-md-6 {
        text-align: left;
    }

    .circle-action-btn {
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        padding: 0;
    }

    .sketch-button-wrapper {
        padding: 16px 24px;
        width: 100%;
    }

    .sketch-button-wrapper button {
        width: 100%;
    }

    .sketch-signature .card .card-body {
        padding: 1rem 0.5rem;
    }

    .sketch-signature .card .card-header {
        padding: 0.5rem 0.5rem;
    }

    .warrant-form-wrapper .card .card-body {
        padding: 0rem 1rem;
    }

    .warrant-form-wrapper .card .card-header {
        padding: 0.5rem 0.5rem;
    }

    /* General sections - make full width */
    .general-details-section,
    .owner-details-section,
    .driver-details-section,
    .other-vehicles-section {
        display: block !important;
        margin: 0.8rem 0 1rem 0 !important;
        padding: 0 0.5rem !important;
    }

    .witness-details-section {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .witness-details-section .mt-3 {
        margin-top: 0rem !important;
    }

    .witness-details-section .mt-5 {
        margin-top: 0.1rem !important;
    }

    .witness-details-section .mb-3 {
        margin-bottom: 0.5rem !important;
        gap: 0 !important;
    }

    .witness-details-section [style] {
        margin-bottom: 0px !important;
    }

    .other-vehicles-section .mb-2 {
        margin-bottom: 0.5rem !important;
    }



    /* Reduce row spacing */
    .general-details-section .row,
    .owner-details-section .row,
    .driver-details-section .row,
    .other-vehicles-section .row,
    .witness-details-section .row {
        margin-bottom: 0 !important;
        gap: 0 !important;
    }

    .general-details-section .row>*,
    .owner-details-section .row>*,
    .driver-details-section .row>*,
    .witness-details-section .row>* {
        margin-top: 0.5rem !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .other-vehicles-section .row>* {
        gap: 0px !important;
    }

    /* .other-vehicles-section .row>* .contact {
        margin-top: 0.3rem !important;
    } */

    .general-details-section .form-label,
    .owner-details-section .form-label,
    .driver-details-section .form-label,
    .other-vehicles-section .form-label,
    .witness-details-section .form-label {
        margin-bottom: 0.25rem;
        /* smaller spacing */
    }

    .general-details-section .gap-4,
    .owner-details-section .gap-4,
    .driver-details-section .gap-4,
    .witness-details-section .gap-4 {
        gap: 0.5rem !important;
        /* reduce spacing on mobile */
    }



    /* OTHER VEHICLES Vehicle row wrapper */
    .vehicle-row {
        flex-wrap: wrap;
        position: relative;
    }

    /* Left side - Vehicle No & Any Passenger side by side (keep desktop style) */
    .vehicle-row>.col-md-5:first-child {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .vehicle-row>.col-md-5:first-child .col-6 {
        flex: 1 1 50%;
        max-width: 50%;
        margin-top: 0.5rem !important;
    }


    /* make name & contact full width */
    .vehicle-row .passenger-row .col-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-top: 0.5rem !important;
    }

    /* spacing between Name and Contact */
    .vehicle-row .passenger-row .col-6+.col-6 {
        margin-top: 0.5rem !important;
    }



    /* Right side - Remove button bottom-right */
    .vehicle-row>.col-md-2 {
        display: flex;
        justify-content: flex-end;
        margin-top: 10px;
        width: 100%;
    }


    /*-------ANY PASSENGER ---------------- Passenger row stack vertically */
    .driver-details-section .passenger-row {
        margin-bottom: 12px;
    }

    /* Passenger Name & Gender full width */
    .driver-details-section .passenger-row>.col-6,
    .driver-details-section .passenger-row>.col-sm-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* remove extra side padding on gender column */
    .driver-details-section .passenger-row .px-3 {
        padding-left: 0.5rem !important;
        padding-right: 0 !important;
    }

    /* Buttons move to right side */
    .driver-details-section .passenger-row>.col-sm-2 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;

        display: flex !important;
        justify-content: flex-end !important;
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
    }

    .driver-details-section .passenger-row>.col-sm-2 button {
        margin-top: 0 !important;
    }


    .wm-meta-row {
        display: grid !important;
        grid-template-columns: 1fr;
        /* single column */
        gap: 8px;
    }

    .wm-meta-row span {
        grid-column: 1 / -1;
        /* full width */
        width: 100%;
        display: block;
    }

    .wm-grid-images {
        grid-template-columns: repeat(2, 1fr);
        /* ✅ 2 per row */
        gap: 8px;
    }

    .wm-grid-images .wm-box img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .wm-grid-videos {
        width: 100%;
    }

    .wm-grid-videos .wm-box {
        height: 240px;
    }

    .wm-grid-videos .wm-box video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }
}


.sketch-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid #eee;
    background: #fff;
}

.footer-right {
    display: flex;
    gap: 10px;
}

.sketch-remarks-field {
    margin-bottom: 1rem;
    /* similar to mb-3 */
}

.sketch-remarks-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.sketch-remarks-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    resize: vertical;
    /* allow vertical resizing */
    min-height: 100px;
    transition: border-color 0.2s;
}