/* Material Design Checkout Form - No Gaps */
.rlr-checkout {
    max-width: 100%;
    margin: 0;
}

.rlr-checkout .form-input {
    position: relative;
    margin-bottom: 0;
    border-bottom: 1px solid #e0e0e0;
    transition: border-color 0.3s ease;
}

.rlr-checkout .form-input:hover {
    border-bottom-color: #bdbdbd;
}

.rlr-checkout .form-input:focus-within {
    border-bottom-color: var(--hsj-theme-primary);
}

.rlr-checkout .form-input:focus-within label {
    color: var(--hsj-theme-primary);
    transform: translateY(-20px) scale(0.85);
}

.rlr-checkout .form-control {
    width: 100%;
    padding: 24px 0 8px 0;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 16px;
    line-height: 1.5;
    color: #212121;
    outline: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

.rlr-checkout .form-control:focus {
    border: none;
    box-shadow: none;
    outline: none;
}

.rlr-checkout label {
    position: absolute; 
    left: 0;
    font-size: 16px;
    color: #757575;
    pointer-events: none;
    transition: all 0.3s ease;
    transform-origin: left top;
}

.rlr-checkout .form-control:focus + label,
.rlr-checkout .form-control:not(:placeholder-shown) + label,
.rlr-checkout .form-control[value]:not([value=""]) + label {
    transform: translateY(-20px) scale(0.85);
    color: var(--hsj-theme-primary);
}

.rlr-checkout select.form-control {
    padding-top: 24px;
    padding-bottom: 8px;
    cursor: pointer;
}

.rlr-checkout select.form-control:not([value=""]) + label,
.rlr-checkout select.form-control:focus + label {
    transform: translateY(-20px) scale(0.85);
    color: var(--hsj-theme-primary);
}

.rlr-checkout textarea.form-control {
    min-height: 80px;
    resize: vertical;
    padding-top: 24px;
}

.rlr-checkout .required {
    color: #d32f2f;
}

/* Remove gaps between rows */
.rlr-checkout .row {
    margin-left: 0;
    margin-right: 0;
}

.rlr-checkout .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

.rlr-checkout .x-gap-20,
.rlr-checkout .y-gap-20 {
    gap: 0 !important;
}

/* Material Design Ripple Effect on Focus */
.rlr-checkout .form-input::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--hsj-theme-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.rlr-checkout .form-input:focus-within::after {
    width: 100%;
}

/* Checkbox Material Design */
.rlr-checkout .form-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.rlr-checkout input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--hsj-theme-primary);
}

/* Button Material Design */
.rlr-checkout .button {
    background: var(--hsj-theme-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.rlr-checkout .button:hover {
    background: #1565c0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.rlr-checkout .button:active {
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Error States */
.rlr-checkout .form-input.error {
    border-bottom-color: #d32f2f;
}

.rlr-checkout .form-input.error label {
    color: #d32f2f;
}

/* Disabled State */
.rlr-checkout .form-control:disabled {
    color: #9e9e9e;
    background: #f5f5f5;
}

/* Phone Input Integration */
.rlr-checkout .iti {
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
}

.rlr-checkout .iti__flag-container {
    background: transparent;
    border: none;
}

/* Responsive */
@media (max-width: 767px) {
    .rlr-checkout .form-control {
        font-size: 14px;
    }
    
    .rlr-checkout label {
        font-size: 14px;
    }
}


/* Clean Modern UI for Private Trip Form (.rlr-checkout) */
.rlr-checkout {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.rlr-checkout .checkout__section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--hsj-theme-primary);
}

.rlr-checkout .woocommerce-billing-fields__field-wrapper,
.rlr-checkout .woocommerce-additional-fields__field-wrapper {
    margin: 0;
}

.rlr-checkout .checkout__personal-details {
    display: grid;
    gap: 18px;
}

.rlr-checkout .form-row {
    position: relative;
    margin-bottom: 0;
}

.rlr-checkout .form-row label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 400;
    color: #64748b;
    pointer-events: none;
    transition: all 0.2s ease;
    background: #fff;
    padding: 0 4px;
}

.rlr-checkout .woocommerce-input-wrapper {
    display: block;
    width: 100%;
}

.rlr-checkout .input-text {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: all 0.2s ease;
}

.rlr-checkout .input-text:hover {
    border-color: #bbb;
}

.rlr-checkout .input-text:focus {
    border-color: var(--hsj-theme-primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.rlr-checkout .input-text:focus + label,
.rlr-checkout .input-text:not(:placeholder-shown) + label,
.rlr-checkout .input-text[value]:not([value=""]) + label {
    top: -8px;
    font-size: 12px;
    color: var(--hsj-theme-primary);
}

.rlr-checkout .input-text::placeholder {
    color: transparent;
}

/* Textarea */
.rlr-checkout textarea.input-text {
    min-height: 90px;
    resize: vertical;
    font-family: inherit;
}

.rlr-checkout textarea.input-text + label {
    top: 20px;
    transform: none;
}

.rlr-checkout textarea.input-text:focus + label,
.rlr-checkout textarea.input-text:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 12px;
    color: var(--hsj-theme-primary);
}

/* Additional Information Section */
.rlr-checkout .woocommerce-additional-fields {
    margin-top: 25px;
}

.rlr-checkout .woocommerce-additional-fields h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--hsj-theme-primary);
}

/* Alert Info */
.rlr-checkout .alert-info {
    background: #e8f4fd;
    border: 1px solid #b3d9f2;
    border-radius: 6px;
    padding: 14px 16px;
    margin: 20px 0;
    font-size: 13px;
    color: #2874a6;
    line-height: 1.5;
}

/* Button Clean Design */
.rlr-checkout .btn-book {
    background: var(--hsj-theme-primary);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
    width: 100%;
    margin-top: 20px;
}

.rlr-checkout .btn-book:hover {
    background: #2980b9;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    transform: translateY(-1px);
}

.rlr-checkout .btn-book:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

/* Optional Label */
.rlr-checkout .optional {
    font-size: 12px;
    color: #999;
    font-style: italic;
    font-weight: 400;
}

/* Date Input */
.rlr-checkout input[type="date"] {
    cursor: pointer;
}

/* Phone Input */
.rlr-checkout input[type="tel"] {
    padding-left: 14px;
}

/* Responsive */
@media (max-width: 767px) {
    .rlr-checkout {
        padding: 20px;
    }
    
    .rlr-checkout .input-text {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .rlr-checkout .form-row label {
        font-size: 12px;
    }
    
    .rlr-checkout .checkout__section-title,
    .rlr-checkout .woocommerce-additional-fields h3 {
        font-size: 16px;
    }
    
    .rlr-checkout .btn-book {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Remove default margins */
.rlr-checkout .form-row-first,
.rlr-checkout .form-row-last,
.rlr-checkout .form-row-wide {
    margin: 0;
    padding: 0;
}

/* Recaptcha Container */
.rlr-checkout .mb-2 {
    margicheckout .form-row label {
        font-size: 13px;
    }
    
    .rlr-checkout .checkout__section-title,
    .rlr-checkout .woocommerce-additional-fields h3 {
        font-size: 18px;
    }
    
    .rlr-checkout .btn-book {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* Remove default margins */
.rlr-checkout .form-row-first,
.rlr-checkout .form-row-last,
.rlr-checkout .form-row-wide {
    margin: 0;
    padding: 0;
}

/* Recaptcha Container */
.rlr-checkout .mb-2 {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Focus visible for accessibility */
.rlr-checkout .input-text:focus-visible {
    outline: 2px solid var(--hsj-theme-primary);
    outline-offset: 2px;
}

/* Disabled state */
.rlr-checkout .input-text:disabled {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
    border-color: #e0e0e0;
}


/* Alert Messages */
.rlr-checkout .alert {
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.rlr-checkout .alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.rlr-checkout .alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.rlr-checkout .alert ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.rlr-checkout .alert .btn-close {
    padding: 0.5rem;
    background: transparent;
    border: none;
    opacity: 0.5;
    cursor: pointer;
}

.rlr-checkout .alert .btn-close:hover {
    opacity: 1;
}
