/*
 * Plugin Name: Elementor Booking Steps
 * Description: Styles for the custom Elementor Booking Steps widget.
 */

/* Main Container for the entire widget */
.elementor-booking-steps-container {
    padding: 0;
    box-sizing: border-box;
    width: 100%;
}

/* 
 * Booking Steps Wrapper - FORCE HORIZONTAL 3-COLUMN LAYOUT ON ALL DEVICES
 */
.booking-steps-wrapper {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    position: relative;
    gap: 10px;
    padding: 20px 0;
    overflow: hidden;
}

/* 
 * Step Item Configuration - ALWAYS HORIZONTAL
 */
.booking-step-item {
    position: relative;
    flex: 1 1 33.333%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    text-align: center;
    align-self: stretch;
}

/* Card Wrapper */
.booking-step-card-wrapper {
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
}

/* 
 * Header: Number Section 
 */
.booking-step-header {
    position: relative;
    margin-bottom: 15px;
}

/* 
 * Step Number Badge 
 */
.booking-step-number {
    position: relative;
    width: 50px;
    height: 50px;
    background-color: #1e73be;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    z-index: 2;
    box-shadow: 0 0 0 8px #ffffff;
    margin: 0 auto 15px;
}

/* Connecting Line - HORIZONTAL ONLY */
.booking-step-item::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #cbd5e0;
    z-index: 1;
}

.booking-step-item:last-child::after {
    display: none;
}

/* 
 * Content Card Styling 
 */
.booking-step-content-card {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
    width: 100%;
}

/* 
 * Visual Elements (Icon/Image) 
 */
.booking-step-visual {
    margin-bottom: 12px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 64px;
}

.booking-step-icon {
    font-size: 48px;
    color: #1e73be;
    display: flex;
    justify-content: center;
    align-items: center;
}

.booking-step-icon i,
.booking-step-icon svg {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #1e73be;
}

.booking-step-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.booking-step-image img {
    max-width: 140px;
    width: 140px;
    height: auto;
    object-fit: contain;
}

/* 
 * Typography 
 */
.booking-step-title {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: 3.9em;
}

.booking-step-description {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.4;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: 2.8em;
}

.booking-step-description p {
    margin-bottom: 0;
}

/* 
 * Mobile Responsive - KEEP 3 COLUMNS HORIZONTAL
 */
@media (max-width: 768px) {
    .booking-steps-wrapper {
        gap: 6px;
        padding: 12px 4px;
    }

    .booking-step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
        box-shadow: 0 0 0 6px #ffffff;
        margin-bottom: 10px;
    }

    .booking-step-item::after {
        top: 20px;
    }

    .booking-step-icon,
    .booking-step-icon i,
    .booking-step-icon svg {
        font-size: 32px;
        width: 32px;
        height: 32px;
    }

    .booking-step-image img {
        max-width: 90px;
        width: 90px;
    }

    .booking-step-visual {
        min-height: 48px;
    }

    .booking-step-title {
        font-size: 12px;
        margin-bottom: 6px;
        min-height: 3.2em;
    }

    .booking-step-description {
        font-size: 10px;
        line-height: 1.3;
        min-height: 2.6em;
    }
}

/* Extra Small Screens - STILL 3 COLUMNS */
@media (max-width: 480px) {
    .booking-steps-wrapper {
        gap: 3px;
    }

    .booking-step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
        box-shadow: 0 0 0 5px #ffffff;
    }

    .booking-step-item::after {
        top: 17px;
    }

    .booking-step-title {
        font-size: 11px;
        min-height: 3em;
    }

    .booking-step-description {
        font-size: 9px;
        min-height: 2.3em;
    }
}

.ct-trip {
  background: #f1f1f1;
  margin-top: -34px;
  padding: 5em 0;
}
.trip-enquiry-form-container {
  margin-top: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.form-description {
  background-color: #f7fafc;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
  color: #4a5568;
  font-size: 0.9rem;
  line-height: 1.6;
}

.form-description p {
  margin: 0;
}

.form-description strong {
  color: #2d3748;
  font-weight: 600;
}

.trip-enquiry-form-container h3 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1.5rem;
  text-align: center;
}
.trip-enquiry-form .form-group {
  margin-bottom: 1.5rem;
}
.trip-enquiry-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4a5568;
}
.trip-enquiry-form .form-control {
  width: 100%;
  padding: 0.75rem;
  background-color: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  transition: all 0.3s ease-in-out;
}
.trip-enquiry-form .form-control:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}
.trip-enquiry-form .submit-button {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background-color: #000000;
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.trip-enquiry-form .submit-button:hover {
  background-color: #2d3748;
}
@media (max-width: 1024px) {
  .ct-trip {
    padding: 2em 2em;
  }
}
/* Responsive Adjustments */
@media (max-width: 768px) {
    .steps-container {
        /* Tablet: 2 columns default, but can be overridden by Elementor responsive controls */
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-title {
        font-size: 2rem; 
    }
    
    .ct-trip{
        padding: 2em 1.5em;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .steps-container {
        /* Mobile: 1 column default, but can be overridden by Elementor responsive controls */
        grid-template-columns: 1fr;
    }
    
    .main-title {
        font-size: 1.8rem; 
    }
    
    .step-card {
        padding: 30px 20px; 
    }
    
    .step-title {
        font-size: 1.3rem; 
    }
}
