/* Cruise Booking Form Styles */
.cruise-booking-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1b232f 0%, #2c3e50 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(27, 35, 47, 0.3);
}

.cruise-booking-form {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(27, 35, 47, 0.2);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cbf-form-section {
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0;
}

.cbf-field-group {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(27, 35, 47, 0.08);
    position: relative;
    transition: background-color 0.3s ease;
}

.cbf-field-group:hover {
    background: rgba(27, 35, 47, 0.02);
}

.cbf-field-group:last-child {
    border-bottom: none;
}

.cbf-label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1b232f;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cbf-required-mark {
    color: #e74c3c;
    margin-left: 5px;
    font-size: 18px;
}

.cbf-input-container {
    width: 100%;
}

.cbf-input,
.cbf-select,
.cbf-textarea {
    width: 100%;
    padding: 16px 20px !important;
    border: 2px solid rgba(27, 35, 47, 0.15) !important;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.9);
    color: #1b232f;
    font-family: inherit;
}

.cbf-input:focus,
.cbf-select:focus,
.cbf-textarea:focus {
    outline: none;
    border-color: #1b232f;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(27, 35, 47, 0.1);
    transform: translateY(-2px);
}

/* Error states */
.cbf-input.cbf-error,
.cbf-select.cbf-error,
.cbf-textarea.cbf-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
    background-color: rgba(248, 215, 218, 0.1);
}

.cbf-error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cbf-error-message::before {
    content: "⚠";
    font-size: 16px;
}

/* Cruise option error styling */
.cbf-field-group.cbf-error .cbf-option-item {
    border-color: #dc3545 !important;
    background: rgba(248, 215, 218, 0.1) !important;
}

/* Grid Layouts */
.cbf-name-fields,
.cbf-phone-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.cbf-address-fields {
    display: grid;
    gap: 15px;
}

.cbf-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.cbf-field-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.cbf-field-wrapper.cbf-full-width {
    grid-column: 1 / -1;
}

.cbf-sub-label {
    display: block;
    font-size: 12px;
    color: #1b232f;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    order: -1;
}

.cbf-phone-separator {
    display: none;
}

/* Two Column Layout for Passenger Fields */
.cbf-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(27, 35, 47, 0.08);
}

.cbf-two-columns .cbf-field-wrapper {
    margin: 0;
}

/* Cruise Options */
.cbf-cruise-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.cbf-option-item {
    display: flex;
    align-items: flex-start;
    background: rgba(27, 35, 47, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cbf-option-item:hover {
    background: rgba(27, 35, 47, 0.1);
    border-color: rgba(27, 35, 47, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 35, 47, 0.1);
}

.cbf-option-item input:checked + .cbf-option-label {
    color: #1b232f;
    font-weight: 600;
}

.cbf-option-item:has(input:checked) {
    background: rgba(27, 35, 47, 0.1);
    border-color: #1b232f;
    box-shadow: 0 4px 16px rgba(27, 35, 47, 0.15);
}

.cbf-radio {
    margin-right: 15px;
    margin-top: 3px;
    width: 20px;
    height: 20px;
    accent-color: #1b232f;
    flex-shrink: 0;
}

.cbf-option-label {
    font-weight: 500;
    color: #1b232f;
    cursor: pointer;
    line-height: 1.5;
}

/* Info Sections and Content */
.cbf-info-section {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(27, 35, 47, 0.08);
    background: linear-gradient(135deg, rgba(27, 35, 47, 0.05) 0%, rgba(27, 35, 47, 0.02) 100%);
}

.cbf-content h3 {
    color: #1b232f;
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.cbf-content p {
    color: #1b232f;
    text-align: center;
    margin: 0;
    font-size: 15px;
}

.cbf-content a {
    color: #1b232f;
    text-decoration: underline;
    font-weight: 600;
}

.cbf-content a:hover {
    color: #2c3e50;
}

/* Pricing Table */
.cbf-pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(27, 35, 47, 0.1);
}

.cbf-pricing-table th,
.cbf-pricing-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(27, 35, 47, 0.1);
    color: #1b232f;
}

.cbf-pricing-table th {
    background: #1b232f;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cbf-pricing-table tbody tr:nth-child(even) {
    background: rgba(27, 35, 47, 0.02);
}

.cbf-pricing-table tbody tr:hover {
    background: rgba(27, 35, 47, 0.05);
}

.cbf-pricing-table td:first-child {
    text-align: left;
    font-weight: 500;
}

/* Separators */
.cbf-separator {
    height: 2px;
    background: linear-gradient(90deg, transparent, #1b232f, transparent);
    margin: 25px 30px;
    border-radius: 1px;
}

/* Submit Section */
.cbf-submit-section {
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(27, 35, 47, 0.05) 0%, rgba(27, 35, 47, 0.02) 100%);
    text-align: center;
    border-bottom: 1px solid rgba(27, 35, 47, 0.08);
}

.cbf-submit-wrapper {
    display: flex;
    justify-content: center;
}

.cbf-submit-button {
    background: linear-gradient(135deg, #1b232f 0%, #2c3e50 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(27, 35, 47, 0.3);
    position: relative;
    overflow: hidden;
}

.cbf-submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cbf-submit-button:hover {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(27, 35, 47, 0.4);
}

.cbf-submit-button:hover::before {
    left: 100%;
}

.cbf-submit-button:active {
    transform: translateY(-1px);
}

.cbf-submit-button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(189, 195, 199, 0.3);
}

/* Error styles */
.cbf-error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fdf2f2 0%, #fce4ec 100%);
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cbf-validation-error {
    border-color: #e74c3c !important;
    background: #fdf2f2 !important;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Messages */
.cbf-form-messages {
    padding: 20px 25px;
    margin: 20px 0;
    border-radius: 12px;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cbf-form-messages.cbf-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #c3e6cb;
    border-left: 6px solid #28a745;
}

.cbf-form-messages.cbf-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #f5c6cb;
    border-left: 6px solid #dc3545;
}

/* Responsive design */
@media (max-width: 768px) {
    .cruise-booking-form-wrapper {
        margin: 10px;
        padding: 15px;
        border-radius: 16px;
    }
    
    .form-line {
        padding: 20px 20px;
    }
    
    .form-line-column {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .form-sub-label-container[data-input-type="first"],
    .form-sub-label-container[data-input-type="last"] {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .form-sub-label-container[data-input-type="areaCode"],
    .form-sub-label-container[data-input-type="phone"] {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .form-address-city-line .form-sub-label-container,
    .form-address-state-line .form-sub-label-container,
    .form-address-zip-line .form-sub-label-container,
    .form-address-country-line .form-sub-label-container {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .form-html table {
        font-size: 12px;
    }
    
    .form-html table td,
    .form-html table th {
        padding: 8px;
    }
    
    .form-submit-button {
        width: 100%;
        padding: 20px;
        font-size: 16px;
    }
    
    .form-buttons-wrapper {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .cruise-booking-form-wrapper {
        margin: 5px;
        padding: 10px;
    }
    
    .form-line {
        padding: 15px 15px;
    }
    
    .form-textbox,
    .form-dropdown,
    .form-textarea {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .form-label {
        font-size: 14px;
    }
    
    .form-html {
        padding: 15px;
    }
    
    .form-html table {
        font-size: 10px;
    }
    
    .form-html table td,
    .form-html table th {
        padding: 6px;
    }
}

/* Loading animation */
.form-loading {
    position: relative;
    overflow: hidden;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(27, 35, 47, 0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Focus styles for accessibility */
.form-textbox:focus,
.form-dropdown:focus,
.form-textarea:focus,
.form-checkbox:focus {
    box-shadow: 0 0 0 4px rgba(27, 35, 47, 0.15);
}

/* Hover effects */
.form-line:hover .form-label {
    color: #2c3e50;
}

/* Additional styling for better UX */
.form-textbox::placeholder,
.form-textarea::placeholder {
    color: rgba(27, 35, 47, 0.5);
    font-style: italic;
}

.form-dropdown option {
    padding: 10px;
    color: #1b232f;
}

/* Custom scrollbar for dropdowns */
.form-dropdown::-webkit-scrollbar {
    width: 8px;
}

.form-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.form-dropdown::-webkit-scrollbar-thumb {
    background: #1b232f;
    border-radius: 4px;
}

.form-dropdown::-webkit-scrollbar-thumb:hover {
    background: #2c3e50;
}
