﻿/* ================================
   PAGE BACKGROUND
================================ */
body {
    background-color: #f4fdfc;
}

/* ================================
   PAGE HEADER
================================ */
.page-title-head {
    background: #e6fffa;
    padding: 14px 20px;
    border-radius: 14px;
    margin-bottom: 12px;
}

    .page-title-head h4 {
        color: #0f766e;
    }

    .page-title-head p {
        font-weight: 500;
    }

/* ================================
   MAIN CARD
================================ */
.card {
    border-radius: 18px;
}

/* ================================
   PHOTO AREA
================================ */
.photo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px !important;
}

    .photo-box img {
        width: 110px;
        height: 110px;
        object-fit: cover;
        background: #fff;
    }

    .photo-box .position-relative {
        padding: 4px;
        border-radius: 50%;
        background: #e6fffa;
    }

/* ================================
   SECTION HEADINGS
================================ */
h5 {
    margin-top: 18px !important;
    margin-bottom: 10px !important;
}

    h5 span {
        background: #e6fffa;
        padding: 5px 12px;
        border-radius: 8px;
        font-size: 14px;
        color: #0f766e;
    }

/* ================================
   FORM CONTROLS
================================ */
.form-control,
.form-select {
    height: 42px;
    padding: 0.375rem 0.75rem;
    font-size: 0.95rem;
    border-radius: 10px;
    border: 1px solid #99f6e4;
    background-color: #fafffe;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #0ea5a4;
        box-shadow: 0 0 0 0.15rem rgba(14, 165, 164, 0.25);
        background-color: #fff;
    }

/* ================================
   SELECT2
================================ */
.select2-container--default .select2-selection--single {
    height: 42px !important;
    border-radius: 10px;
    border: 1px solid #99f6e4;
    background-color: #fafffe;
}

    .select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
        line-height: 42px !important;
        padding-left: 12px;
        padding-right: 30px;
        color: #334155;
    }

    .select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
        height: 42px !important;
    }

    .select2-container--default
    .select2-selection--single:focus,
    .select2-container--default.select2-container--open
    .select2-selection--single {
        border-color: #0ea5a4;
        box-shadow: 0 0 0 0.15rem rgba(14, 165, 164, 0.25);
    }

/* ================================
   ROW SPACING
================================ */
.row.g-3 {
    --bs-gutter-y: 0.75rem;
}

/* ================================
   STICKY FOOTER
================================ */
.sticky-footer {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    padding: 10px 14px;
    border-top: 1px solid #ccfbf1;
    border-radius: 0 0 18px 18px;
}

/* ================================
   PRIMARY BUTTON
================================ */
.btn-primary {
    height: 48px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    background-color: #0ea5a4;
    border-color: #0ea5a4;
}

    .btn-primary:hover {
        background-color: #0f766e;
        border-color: #0f766e;
    }
.card-body {
    background-color: #f9fefe; /* very light teal-white */
    border-radius: 18px;
}
/* Section block background */
.section-block {
    background: #ffffff;
    border: 1px solid #ccfbf1;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
}
/* Company Details block */
h5:has(span:contains("Company Details")) {
    margin-bottom: 8px;
}

    h5:has(span:contains("Company Details")) + .row {
        background: #ffffff;
        padding: 16px;
        border-radius: 14px;
        border: 1px solid #ccfbf1;
    }

/* Visitor Information block */
h5:has(span:contains("Visitor Information")) + .row {
    background: #ffffff;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #ccfbf1;
}
body {
    background-color: #eef7f6; /* darker than card */
}
.card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.photo-box {
    background: transparent;
    padding: 8px 0;
    margin-bottom: 10px !important;
}
.sticky-footer {
    background: #ffffff;
    border-top: 1px solid #ccfbf1;
    box-shadow: 0 -6px 18px rgba(0,0,0,0.04);
}
.page-title-head {
    background: #e6fffa;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 10px;
    margin-top: 10px;
}

    .page-title-head h4 {
        font-size: 18px;
        font-weight: 700;
        color: #0f766e;
    }

    .page-title-head p {
        font-size: 13px;
    }
.card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: none;
}
.photo-box {
    padding: 6px 0;
    margin-bottom: 8px !important;
}

    .photo-box img {
        width: 96px;
        height: 96px;
    }

.row.g-3 {
    --bs-gutter-y: 0.6rem;
}
.sticky-footer {
    background: #ffffff;
    padding: 10px;
    border-top: 1px solid #ccfbf1;
}

.btn-primary {
    height: 52px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 14px;
}
/* ================================
   FIX: TEXTAREA HEIGHT (MOBILE)
================================ */

/* Remove fixed height for textarea */
textarea.form-control {
    height: auto !important;
    min-height: 90px; /* mobile-friendly */
    line-height: 1.4;
    padding-top: 10px;
    padding-bottom: 10px;
    resize: vertical; /* allow resize if needed */
}
/* 🔥 FIX SWEETALERT BLUR ISSUE */
body.swal2-shown {
    filter: none !important;
}

.swal2-container {
    backdrop-filter: none !important;
}

.swal2-backdrop-show {
    background: transparent !important;
}
/* FIELD VALIDATION */
.is-invalid {
    border-color: #dc3545 !important;
}

.is-valid {
    border-color: #28a745 !important;
}

.field-msg {
    font-size: 0.85rem;
    margin-top: 4px;
}

    .field-msg.error {
        color: #dc3545; /* 🔴 RED */
    }

    .field-msg.success {
        color: #28a745; /* 🟢 GREEN */
    }
