/*
 * All theme customisations and new styles should go here.
 * style.css is kept for the Tailwind minified CSS specifically to maintain a cleaner separation.
 */

.itinerary-item ul {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--color-gray-600, #475569);
}

.itinerary-item ol {
    list-style-type: decimal;
    padding-left: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--color-gray-600, #475569);
}

.itinerary-item li {
    margin-bottom: 0.5rem;
    line-height: var(--leading-relaxed, 1.625);
}

/* FacetWP Radio Styles (Styled as Pills) */
.facetwp-facet.facetwp-type-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 0 !important;
}

.facetwp-facet.facetwp-type-radio .facetwp-radio {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 9999px;
    color: #475569;
    font-size: 0.875rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin: 0 !important;
    background-image: none !important;
    user-select: none;
}

.facetwp-facet.facetwp-type-radio .facetwp-radio:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
}

.facetwp-facet.facetwp-type-radio .facetwp-radio.checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2), 0 2px 4px -1px rgba(79, 70, 229, 0.1);
}

.facetwp-facet.facetwp-type-radio .facetwp-radio .facetwp-counter {
    background-color: rgba(0, 0, 0, 0.06);
    padding: 0.1rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    margin-left: 0.375rem;
    font-weight: 500;
}

.facetwp-facet.facetwp-type-radio .facetwp-radio.checked .facetwp-counter {
    background-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ==========================================================================
   Gravity Forms Site-wide Styling
   ========================================================================== */

/* Wrapper and layout */
.gform_wrapper form {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

.gform_wrapper .gform_body {
    width: 100% !important;
}

.gform_wrapper .gfield {
    margin-bottom: 1.5rem !important;
}

/* Labels */
.gform_wrapper .gfield_label {
    display: block !important;
    color: rgba(0, 0, 0, 0.7) !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    margin-bottom: 0.5rem !important;
}

.gform_wrapper .gfield_required {
    color: #ef4444 !important;
    margin-left: 0.25rem !important;
}

.gform_wrapper .gfield_required_text {
    display: none !important;
}

/* Inputs & Textareas */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="password"],
.gform_wrapper select,
.gform_wrapper textarea {
    width: 100% !important;
    padding: 0.5rem 0.75rem !important;
    border: 1px solid rgba(107, 114, 128, 0.3) !important;
    border-radius: 0.25rem !important;
    outline: none !important;
    transition: all 0.2s ease-in-out !important;
    background-color: transparent !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    color: #1f2937 !important;
    box-shadow: none !important;
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="password"],
.gform_wrapper select {
    min-height: 3rem !important; /* h-12 */
}

.gform_wrapper textarea {
    min-height: 10rem !important; /* h-40 */
    resize: vertical !important;
}

/* Focus States */
.gform_wrapper input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]):focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus {
    border-color: #a5b4fc !important; /* focus:border-indigo-300 */
    box-shadow: 0 0 0 1px #a5b4fc !important;
}

/* Submit Button */
.gform_wrapper .gform_footer {
    display: flex !important;
    justify-content: flex-start !important;
    margin-top: 0.5rem !important;
    padding: 0 !important;
    border: none !important;
}

.gform_wrapper .gform_button[type="submit"],
.gform_wrapper .button[type="submit"] {
    margin-top: 0 !important;
    background-color: #4f46e5 !important; /* bg-indigo-600 */
    color: #ffffff !important;
    min-height: 3rem !important; /* h-12 */
    width: 100% !important;
    border: none !important;
    border-radius: 0.25rem !important;
    font-weight: 500 !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    padding: 0 3rem !important;
}

@media (min-width: 768px) {
    .gform_wrapper .gform_button[type="submit"],
    .gform_wrapper .button[type="submit"] {
        width: auto !important;
    }
}

.gform_wrapper .gform_button[type="submit"]:hover,
.gform_wrapper .button[type="submit"]:hover {
    background-color: #4338ca !important; /* bg-indigo-700 */
}

.gform_wrapper .gform_button[type="submit"]:active,
.gform_wrapper .button[type="submit"]:active {
    transform: scale(0.95) !important;
}

/* Validation Errors */
.gform_wrapper .gfield_error input,
.gform_wrapper .gfield_error textarea,
.gform_wrapper .gfield_error select {
    border-color: #ef4444 !important; /* border-red-500 */
}

.gform_wrapper .gfield_description.validation_message {
    color: #ef4444 !important;
    font-size: 0.75rem !important;
    margin-top: 0.5rem !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Main Top Error Banner */
.gform_wrapper .validation_error {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: #dc2626 !important;
    padding: 1rem !important;
    border-radius: 0.25rem !important;
    border-left: 4px solid #dc2626 !important;
    margin-bottom: 1.5rem !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
}

/* Success Confirmation Message */
.gform_confirmation_message {
    background-color: rgba(22, 163, 74, 0.1) !important;
    color: #16a34a !important;
    padding: 1rem 1.5rem !important;
    border-radius: 0.25rem !important;
    border-left: 4px solid #16a34a !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    margin-top: 1rem !important;
    margin-bottom: 2rem !important;
}

/* ==========================================================================
   Inner Page Hero Adjustments
   ========================================================================== */
body:not(.home):not(.front-page) section.min-h-\[80vh\] {
    min-height: 45vh !important;
    padding-top: 7rem !important;
    padding-bottom: 4rem !important;
}

@media (min-width: 1024px) {
    body:not(.home):not(.front-page) section.min-h-\[80vh\] {
        min-height: 50vh !important;
    }
}