/* =============================================================
   Ooty Travels - Contact / Callback / Floating Action Styles
   Reusable components: card contact actions, floating action bar,
   and "Request a Callback" modal. Uses the site's brand green.
   ============================================================= */

:root {
    --oc-brand: #1f7a63;
    --oc-brand-dark: #155645;
    --oc-brand-light: #e7f6f1;
    --oc-whatsapp: #25d366;
    --oc-phone: #1f7a63;
        --oc-call: #1f7a63;
    --oc-circle: #1f7a63;
    --oc-danger: #dc3545;
}

/* ---------- Base .oc-btn (CTA bar & other inline buttons) ---------- */
.oc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 18px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.oc-btn i {
    font-size: 14px;
}

.oc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(21, 86, 69, 0.2);
}

.oc-btn:focus-visible {
    outline: 2px solid var(--oc-brand);
    outline-offset: 2px;
}

/* ---------- CTA bar (top of every tour page) ---------- */
.cta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
}

/* ---------- Card contact action buttons ---------- */
.trv-card-contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(31, 122, 99, 0.25);
}

.trv-card-contact-actions .oc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    cursor: pointer;
    line-height: 1.2;
    text-align: center;
}

.trv-card-contact-actions .oc-btn i {
    font-size: 14px;
}

.trv-card-contact-actions .oc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(21, 86, 69, 0.2);
}

.oc-btn-call {
    background: linear-gradient(135deg, #1f7a63 0%, #155645 100%);
    color: #ffffff;
    font-weight: 800;
}
.oc-btn-callback {
    background: #ffffff;
    color: var(--oc-brand-dark);
    border: 2px solid var(--oc-brand);
    font-weight: 700;
}
.oc-btn-whatsapp {
    background: var(--oc-whatsapp);
    color: #ffffff;
}
.oc-btn-contact {
    background: #ffffff;
    color: var(--oc-brand-dark);
    border-color: var(--oc-brand);
}

/* ---------- Floating action bar ---------- */
.oc-float-actions {
    position: fixed;
    right: 18px;
    bottom: 90px;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.oc-float-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    border: none;
}

.oc-float-icon:hover {
    transform: translateY(-3px) scale(1.05);
    color: #ffffff;
}

.oc-float-icon .oc-float-label {
    position: absolute;
    right: 64px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    color: var(--oc-brand-dark);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.oc-float-icon:hover .oc-float-label {
    opacity: 1;
}

.oc-float-call {
    background: linear-gradient(135deg, #1f7a63 0%, #155645 100%);
}
.oc-float-whatsapp {
    background: var(--oc-whatsapp);
}
.oc-float-call-alt {
    background: linear-gradient(135deg, #2c7fb8 0%, #3498db 100%);
}
.oc-float-whatsapp-alt {
    background: var(--oc-whatsapp);
}
.oc-float-callback {
    background: linear-gradient(135deg, #155645 0%, #1f7a63 100%);
}

@keyframes ocPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.oc-float-whatsapp {
    animation: ocPulse 2.4s infinite;
}

/* ---------- Modal ---------- */
.oc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 30, 24, 0.6);
    backdrop-filter: blur(3px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.oc-modal-overlay.oc-open {
    display: flex;
}

.oc-modal {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    animation: ocModalIn 0.3s ease;
    max-height: 92vh;
    overflow-y: auto;
}

@keyframes ocModalIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.oc-modal-head {
    background: linear-gradient(135deg, #1f7a63 0%, #155645 100%);
    color: #ffffff;
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.oc-modal-head h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.oc-modal-head p {
    margin: 4px 0 0;
    font-size: 13px;
    opacity: 0.9;
}

.oc-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.oc-modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.oc-modal-body {
    padding: 22px;
}

.oc-form-group {
    margin-bottom: 14px;
}

.oc-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--oc-brand-dark);
    margin-bottom: 5px;
}

.oc-form-group input,
.oc-form-group select,
.oc-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dbe7e2;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #1c2b26;
    background: #fbfdfc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.oc-form-group input:focus,
.oc-form-group select:focus,
.oc-form-group textarea:focus {
    outline: none;
    border-color: var(--oc-brand);
    box-shadow: 0 0 0 3px rgba(31, 122, 99, 0.15);
}

.oc-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.oc-submit-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #1f7a63 0%, #155645 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.oc-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(21, 86, 69, 0.3);
}

.oc-modal-success {
    text-align: center;
    padding: 30px 20px;
    display: none;
}

.oc-modal-success .oc-check {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--oc-brand-light);
    color: var(--oc-brand);
    font-size: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.oc-modal-success h4 {
    color: var(--oc-brand-dark);
    margin: 0 0 6px;
    font-size: 20px;
}

.oc-modal-success p {
    color: #5a6f68;
    font-size: 14px;
    margin: 0 0 18px;
}

.oc-err {
    border-color: var(--oc-danger) !important;
}

.oc-error-msg {
    color: var(--oc-danger);
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

/* Responsive */
@media (max-width: 575px) {
    .oc-float-actions {
        right: 12px;
        bottom: 82px;
    }
    .oc-float-icon {
        width: 48px;
        height: 48px;
        font-size: 21px;
    }
    .trv-card-contact-actions .oc-btn {
        font-size: 12px;
        padding: 8px 6px;
    }
}
