﻿.tooltip-inner {
    background-color: #dc3545 !important;
    color: #fff !important;
    font-weight: 500;
}

.bs-tooltip-top .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
    border-top-color: #dc3545 !important;
}

.bs-tooltip-bottom .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before {
    border-bottom-color: #dc3545 !important;
}

.bs-tooltip-start .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before {
    border-left-color: #dc3545 !important;
}

.bs-tooltip-end .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before {
    border-right-color: #dc3545 !important;
}

body {
    background-color: #f9fafb;
    font-family: 'Poppins', sans-serif;
}

.tab-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    padding: 24px;
    margin-top: 60px;
}

.icon-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
    gap: 40px;
}

.icon-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.3s ease;
}

    .icon-tab i {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .icon-tab:hover {
        color: #dc3545;
    }

    .icon-tab.active {
        color: #dc3545;
        border-bottom: 2px solid #dc3545;
    }

.tab-content {
    padding-top: 20px;
}

.form-section h5 {
    color: #dc3545;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.form-label {
    font-weight: 500;
    color: #333;
}

.form-control,
.form-select {
    height: 42px;
    border-radius: 8px;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #dc3545;
        box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    }

.btn-danger {
    background-color: #dc3545;
    border: none;
    padding: 10px 28px;
    font-weight: 500;
    border-radius: 6px;
}

    .btn-danger:hover {
        background-color: #c82333;
    }

.icon-tabs {
    display: flex;
    border: none;
    margin-bottom: 10px;
    background: #ffffff;
    padding: 15px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.icon-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    font-size: 18px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
}


    .icon-tab i {
        font-size: 18px;
        margin-bottom: 4px;
        transition: transform 0.3s ease;
    }

    .icon-tab:hover {
        background-color: #fef2f2;
        color: #dc3545;
        box-shadow: 0 4px 10px rgba(220, 53, 69, 0.15);
        transform: translateY(-2px);
    }

    .icon-tab.active {
        background-color: #dc3545;
        color: #fff;
        box-shadow: 0 6px 16px rgba(220, 53, 69, 0.3);
    }

        .icon-tab.active i {
            color: #fff;
            transform: scale(1.1);
        }

.underline-input {
    border: none;
    border-bottom: 1px solid #000;
    background-color: transparent;
    outline: none;
    width: auto;
    min-width: 150px;
    display: inline-block;
}

.card {
    margin-top: 100px;
    margin-bottom: 30px;
    background: white
}


.underline-input {
    border: none;
    border-bottom: 1px solid #000;
    background-color: transparent;
    outline: none;
    width: auto;
    min-width: 150px;
    display: inline-block;
}

.form-section-title {
    background-color: #f8f9fa;
    border-left: 5px solid #dc3545;
    padding: 10px 15px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 18px;
}

.custom-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    margin-top: 60px;
    margin-bottom: 40px;
}

.card-header-custom {
    background: linear-gradient(to right, #dc3545, #bd2130);
    color: white;
    padding: 20px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    text-align: center;
}

    .card-header-custom h4 {
        margin-bottom: 5px;
    }

.declaration-box {
    background-color: #fdfdfd;
    border-left: 4px solid #dc3545;
    padding: 20px;
    margin-top: 30px;
}

.tabsTop {
    margin-top: 100px
}

.small-checkbox {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    cursor: pointer;
    transform: scale(0.9);
}

.upload-btn {
    background-color: #f8f9fa;
    border: 2px dashed #ced4da;
    transition: all 0.3s ease;
}

    .upload-btn:hover {
        background-color: #fff3f3;
        border-color: #dc3545;
        color: #dc3545;
    }

.form-select:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.custom-select {
    height: 42px;
    border-radius: 8px;
}

.upload-btn:hover {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #dc3545;
}

.upload-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 85%;
}


.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.custom-file-upload .upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    background-color: #f8f9fa;
    border: 2px dashed #ced4da;
    color: #6b7280;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .custom-file-upload .upload-label:hover {
        background-color: #fff3f3;
        border-color: #dc3545;
        color: #dc3545;
    }

    .custom-file-upload .upload-label i {
        font-size: 1.2rem;
        color: inherit;
    }

#fileNameLabel {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 250px;
}

.ui-datepicker {
    font-size: 14px;
}


/* Wrapper to keep nice spacing on mobile */
.signature-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
}

canvas.sigpad {
    width: auto;
    height: auto;
    display: block;
    background: #fff;
    border: 2px dashed #dc3545;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
    touch-action: pan-y pinch-zoom; 
    cursor: crosshair;
    overscroll-behavior: contain;
    float:right;
    margin-bottom:20px;
}


/* Tighten layout on small screens */
@media (max-width: 576px) {
    .signature-card {
        padding: .75rem;
    }

    .sig-actions .btn {
        padding: .35rem .6rem;
        font-size: .8rem;
    }
}
canvas.sigpad {
    /* …same visual styles… */
    touch-action: pan-x pan-y pinch-zoom; /* allow both scroll directions + zoom */
}