/**
 * Frontend Styles for Buddha Quotation Forms
 * Color theme: #0093DA (Buddha Travel Primary)
 */

/* Container & Wrapper */
.bt-quotation-wrapper {
    max-width: 980px;
    margin: 0 auto;
    font-family: inherit;
    box-sizing: border-box;
}

.bt-quotation-wrapper *,
.bt-quotation-wrapper *::before,
.bt-quotation-wrapper *::after {
    box-sizing: border-box;
}

/* Tabs Navigation */
.bt-quotation-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    justify-content: flex-start;
}

.bt-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    outline: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.bt-tab-btn .dashicons {
    font-size: 17px;
    width: 17px;
    height: 17px;
    vertical-align: middle;
    transition: color 0.2s;
}

.bt-tab-btn:hover {
    background: #f0f9ff;
    color: #0093DA;
    border-color: #bae6fd;
}

.bt-tab-btn.active {
    background: #0093DA;
    color: #ffffff;
    border-color: #0093DA;
    box-shadow: 0 4px 12px rgba(0, 147, 218, 0.28);
}

.bt-tab-btn.active .dashicons {
    color: #ffffff;
}

/* Card Container */
.bt-quotation-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 32px 36px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 640px) {
    .bt-quotation-card {
        padding: 20px 18px;
    }
}

/* Header */
.bt-card-header {
    margin-bottom: 24px;
}

.bt-form-title {
    font-size: 24px;
    font-weight: 800;
    /* color: #0f172a; */
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}

.bt-form-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Grid System */
.bt-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .bt-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Top Boxed Section (Image 1 & Image 2) */
.bt-boxed-section {
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 26px;
    background: #fafcff;
}

/* Field Groups & Labels */
.bt-field-group {
    display: flex;
    flex-direction: column;
}

.bt-label {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    display: block;
}

.bt-required {
    color: #ef4444;
    font-weight: bold;
}

/* Input Icon Wrap */
.bt-input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.bt-input-icon-left {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    font-size: 17px;
    width: 17px;
    height: 17px;
    pointer-events: none;
    z-index: 2;
}

.bt-input-icon-right {
    position: absolute;
    right: 12px;
    color: #94a3b8;
    font-size: 17px;
    width: 17px;
    height: 17px;
    pointer-events: none;
    z-index: 2;
}

.bt-icon-rotate-dep {
    transform: rotate(45deg);
}

.bt-input-icon-wrap.select-wrap .bt-input-icon-right {
    pointer-events: none;
}

.bt-input-icon-wrap .datepicker-trigger {
    cursor: pointer;
    pointer-events: auto;
}

/* Input Fields */
.bt-input {
    width: 100%;
    height: 44px;
    padding: 8px 36px 8px 38px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-size: 14px;
    color: #1e293b;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: inherit;
}

.bt-input:not([class*="bt-datepicker"]) {
    padding-right: 14px;
}

.bt-input:focus {
    border-color: #0093DA;
    box-shadow: 0 0 0 3px rgba(0, 147, 218, 0.15);
}

.bt-input.bt-input-error {
    border-color: #ef4444;
    background-color: #fffaf0;
}

.bt-select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Section Header (Traveller, Requests, Contact) */
.bt-section {
    margin-bottom: 24px;
}

.bt-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.bt-section-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0093DA;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bt-section-icon .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.bt-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #0093DA;
    margin: 0;
}

.bt-section-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: -6px 0 14px 0;
}

/* Textarea & Character Count */
.bt-textarea-wrap {
    position: relative;
    width: 100%;
}

.bt-textarea {
    width: 100%;
    height: auto;
    min-height: 100px;
    padding: 12px 14px 28px 14px !important;
    resize: vertical;
    line-height: 1.5;
}

.bt-char-count-wrap {
    position: absolute;
    right: 12px;
    bottom: 8px;
    font-size: 12px;
    color: #94a3b8;
    pointer-events: none;
    font-weight: 500;
}

/* Phone Input with Dial Code */
.bt-phone-input-wrap {
    display: flex;
    gap: 8px;
    width: 100%;
}

.bt-dial-code-select-wrap {
    width: 110px;
    flex-shrink: 0;
}

.bt-dial-code-select {
    width: 100%;
    height: 44px;
    padding: 6px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-size: 13px;
    background: #ffffff;
    color: #1e293b;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.bt-dial-code-select:focus {
    border-color: #0093DA;
}

.bt-phone-field {
    flex: 1;
}

.bt-phone-field .bt-input {
    padding-left: 14px;
}

/* Field Error Messages */
.bt-field-error {
    display: none;
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

/* Footer Section */
.bt-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 10px;
}

@media (max-width: 640px) {
    .bt-form-footer {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Security Box */
.bt-security-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 10px 14px;
    max-width: 380px;
}

.bt-security-icon {
    color: #16a34a;
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.bt-security-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #166534;
}

.bt-security-sub {
    font-size: 11.5px;
    color: #15803d;
    line-height: 1.3;
}

/* Submit Button */
.bt-submit-wrap {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .bt-submit-wrap {
        width: 100%;
    }
}

.bt-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0093DA;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 34px;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 147, 218, 0.25);
    min-width: 170px;
}

@media (max-width: 640px) {
    .bt-submit-btn {
        width: 100%;
    }
}

.bt-submit-btn:hover {
    background: #007cb8;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 147, 218, 0.35);
}

.bt-submit-btn:active {
    transform: translateY(0);
}

.bt-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.bt-btn-spinner {
    animation: bt-spin 1s linear infinite;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

@keyframes bt-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Response Alerts */
.bt-form-response {
    margin-top: 20px;
    margin-bottom: 10px;
}

.bt-alert {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.bt-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.bt-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* ==========================================================
   jQuery UI Datepicker Custom Styling
   ========================================================== */
#ui-datepicker-div {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    padding: 12px;
    font-family: inherit;
    z-index: 999999 !important;
    display: none;
    max-width: 290px;
}

.ui-datepicker-header {
    position: relative;
    padding: 6px 0 10px 0;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 8px;
}

.ui-datepicker-title {
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    position: absolute;
    top: 5px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-indent: -9999px;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    background: #f1f5f9;
    color: #0093DA;
}

.ui-datepicker-prev {
    left: 2px;
}

.ui-datepicker-next {
    right: 2px;
}

.ui-datepicker-prev::after {
    content: "‹";
    text-indent: 0;
    font-size: 20px;
    line-height: 1;
    position: absolute;
    left: 8px;
    top: 2px;
}

.ui-datepicker-next::after {
    content: "›";
    text-indent: 0;
    font-size: 20px;
    line-height: 1;
    position: absolute;
    right: 8px;
    top: 2px;
}

.ui-datepicker-calendar {
    width: 100%;
    border-collapse: collapse;
}

.ui-datepicker-calendar th {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    padding: 4px 0;
    text-align: center;
}

.ui-datepicker-calendar td {
    padding: 2px;
    text-align: center;
}

.ui-datepicker-calendar td a,
.ui-datepicker-calendar td span {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 6px;
    text-decoration: none;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s;
}

.ui-datepicker-calendar td a:hover {
    background: #e0f2fe;
    color: #0093DA;
}

.ui-datepicker-calendar td.ui-datepicker-today a {
    border: 1px solid #0093DA;
    color: #0093DA;
}

.ui-datepicker-calendar td.ui-datepicker-current-day a,
.ui-datepicker-calendar td a.ui-state-active {
    background: #0093DA !important;
    color: #ffffff !important;
    font-weight: 700;
}

.ui-datepicker-calendar td.ui-state-disabled span {
    color: #cbd5e1;
    cursor: default;
}

