
/*
   Safari Plug Safaris - Enhancement Styles
   Additional styling improvements and features
*/

/* Smooth Scrolling (already in style.css, but ensure it's considered) */
html {
    scroll-behavior: smooth;
}

/* Enhanced Card Hover Effects */
.package-card,
.destination-card,
.team-member,
.value-card,
.mission-card, /* from about-brief */
.vision-card { /* from about page */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package-card:hover,
.destination-card:hover,
.team-member:hover,
.value-card:hover,
.mission-card:hover,
.vision-card:hover {
    transform: translateY(-6px); /* Slightly more lift */
    box-shadow: var(--shadow-lg); /* Use theme variable */
}

/* Button Hover Effects & Focus States */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1; /* Ensure button text is above pseudo-elements */
}

.btn::before { /* Using ::before for a subtle background shift on hover */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1); /* For dark buttons */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1; /* Behind text */
}
.btn-primary::before, .btn-secondary::before {
    background-color: rgba(255, 255, 255, 0.1);
}
.btn-outline::before { /* For outline, fill on hover is done by bg change */
    background-color: rgba(0, 0, 0, 0.05); /* Subtle effect for light outline buttons */
}
.btn-light::before {
    background-color: rgba(0,0,0,0.1); /* For light buttons on dark CTA */
}


.btn:hover::before {
    opacity: 1;
}
.btn:focus {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(240, 129, 15, 0.25); /* Consistent focus ring */
}
.btn-secondary:focus {
    outline-color: var(--secondary-dark);
    box-shadow: 0 0 0 3px rgba(44, 122, 69, 0.25);
}


/* Animation for CTA button */
.cta .btn-light { /* Target specific button in CTA */
    animation: pulseButton 2s infinite ease-in-out;
}

@keyframes pulseButton {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Enhanced Form Styles (complementing existing styles) */
.form-control {
    /* Basic styles in style.css or inline */
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.form-control:focus {
    /* Styles in style.css or inline */
    border-color: var(--primary); /* Ensure focus color is primary */
    box-shadow: 0 0 0 3px rgba(240, 129, 15, 0.15); /* Subtle focus shadow */
    background-color: var(--white); /* Ensure bg is white on focus in light mode */
}
[data-theme="dark"] .form-control:focus {
    background-color: var(--card-bg); /* Or a slightly lighter dark shade */
}


/* Form validation styles (field-error is used in JS) */
.form-control.error {
    border-color: #e74c3c; /* Error red */
    background-color: #fef2f2; /* Light red background for error fields */
}
[data-theme="dark"] .form-control.error {
    background-color: rgba(231, 76, 60, 0.1); /* Dark theme error bg */
}

/* Error messages are styled inline in head.ejs */
/* Success messages are styled inline in head.ejs */

/* Custom Checkbox (if .checkmark is used with the provided HTML structure) */
.checkbox-container { /* This is the label wrapping input and span */
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none; /* Prevent text selection on click */
    margin-bottom: 10px; /* Spacing for checkbox group */
}
.checkbox-container input[type="checkbox"] {
    /* position: absolute; */ /* Keep it in flow for better accessibility by default */
    /* opacity: 0; */ /* Hiding native for full custom is an option but can be complex for a11y */
    /* cursor: pointer; */
    /* height: 0; */
    /* width: 0; */
    margin-right: 8px; /* Standard spacing for native checkbox */
    width: 1.1em; /* Size native checkbox */
    height: 1.1em;
    accent-color: var(--primary); /* Modern way to color native checkbox */
}

/* If using the .checkmark span for a fully custom checkbox:
.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.checkmark {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    margin-right: 10px;
    transition: all 0.2s ease;
}
.checkbox-container:hover input ~ .checkmark {
    border-color: var(--primary);
}
.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}
*/

.checkbox-container a { /* Links within checkbox label */
    color: var(--primary);
    text-decoration: underline;
}
.checkbox-container a:hover {
    color: var(--primary-dark);
}


/* Alert Messages (if used beyond form responses) */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    position: relative;
    border-left-width: 4px;
    border-left-style: solid;
    font-size: 0.95rem;
}
.alert-success {
    background-color: #d1e7dd; color: #0f5132; border-left-color: #0f5132;
}
.alert-warning {
    background-color: #fff3cd; color: #664d03; border-left-color: #664d03;
}
.alert-danger {
    background-color: #f8d7da; color: #842029; border-left-color: #842029;
}
.alert-info {
    background-color: #cff4fc; color: #055160; border-left-color: #055160;
}
[data-theme="dark"] .alert-success { background-color: #0f5132; color: #d1e7dd; border-left-color: #d1e7dd; }
[data-theme="dark"] .alert-warning { background-color: #664d03; color: #fff3cd; border-left-color: #fff3cd; }
[data-theme="dark"] .alert-danger  { background-color: #842029; color: #f8d7da; border-left-color: #f8d7da; }
[data-theme="dark"] .alert-info    { background-color: #055160; color: #cff4fc; border-left-color: #cff4fc; }


/* Enhanced FAQ Accordion (complementing faq.css) */
/* faq.css handles core functionality, these are visual enhancements */
.faq-item {
    transition: box-shadow 0.3s ease;
}
.faq-item:hover {
    box-shadow: var(--shadow-md); /* Subtle shadow on hover if not already applied */
}
.faq-question {
    transition: background-color 0.3s ease;
}
/* .faq-question:hover is in faq.css or enhancements.css, ensure one definition */
/* .faq-question.active styles in faq.css */
/* .faq-answer.show transition in faq.css */

/* Modal Styles (complementing inline styles in head.ejs) */
/* .modal, .modal-content, etc. are defined inline for immediate rendering */
/* These could be enhancements or overrides */
.modal.show .modal-content {
    animation: fadeInModal 0.3s ease-out forwards;
}
@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.9) translateY(-20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header h2 {
    font-weight: 600;
}

/* ScrollToTop Button (styles are inline in head.ejs) */
/* Additional hover effect for the icon within */
.scroll-to-top i {
    transition: transform 0.2s ease-in-out;
}
.scroll-to-top:hover i {
    transform: scale(1.1);
}

/* Enhanced Image Styles */
.image-hover-zoom { /* Apply to a container div around an image */
    overflow: hidden;
    border-radius: 8px; /* If the container should be rounded */
}
.image-hover-zoom img {
    transition: transform 0.4s ease-out;
    display: block; /* Remove extra space */
    width: 100%;
}
.image-hover-zoom:hover img {
    transform: scale(1.08); /* Slightly more zoom */
}

/* Text Highlight */
.text-highlight {
    color: var(--primary);
    font-weight: 600;
    background-color: rgba(240, 129, 15, 0.1); /* Subtle background for highlight */
    padding: 0.1em 0.3em;
    border-radius: 3px;
}
[data-theme="dark"] .text-highlight {
    background-color: rgba(240, 129, 15, 0.2);
}


/* Loading Animation for Submit Buttons (example) */
.btn.loading {
    position: relative;
    color: transparent !important; /* Hide text */
    pointer-events: none; /* Disable clicks while loading */
}
.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px; /* Center horizontally */
    margin-top: -10px;  /* Center vertically */
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.4); /* Spinner track */
    border-top-color: var(--white); /* Spinner head */
    animation: spin 0.8s linear infinite;
}
/* For dark buttons on light backgrounds (e.g., btn-primary) */
.btn-primary.loading::after, .btn-secondary.loading::after {
    border-top-color: var(--white);
}
/* For light buttons on dark backgrounds (e.g., btn-light on CTA) */
.btn-light.loading::after {
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-top-color: var(--primary); /* Or a dark color */
}
[data-theme="dark"] .btn-primary.loading::after,
[data-theme="dark"] .btn-secondary.loading::after {
    /* For dark theme, spinner head on dark buttons should be dark */
    border: 3px solid rgba(0, 0, 0, 0.4); /* Darker track */
    border-top-color: var(--bg-primary); /* Dark spinner head */
}
[data-theme="dark"] .btn-light.loading::after { /* btn-light is light bg in dark mode */
     border: 3px solid rgba(0, 0, 0, 0.4); /* Darker track for light button in dark mode */
     border-top-color: var(--primary); /* Primary color for spinner head */
}


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utility class for subtle text shadow for better readability on images */
.text-on-image-shadow {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
