/* DIY Retreat Booking Form Styles */

.diy-retreat-form {
    max-width: 800px;
    margin: 20px 0;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #f9f9f9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.diy-form-section {
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.diy-form-section:first-child {
    border-top: none;
}

.diy-form-row {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.diy-form-field {
    flex: 1;
    min-width: 200px;
}

.diy-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #34495e;
}

.diy-form-field input,
.diy-form-field select,
.diy-form-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.diy-form-field input:focus,
.diy-form-field select:focus,
.diy-form-field textarea:focus {
    outline: none;
    border-color: #3498db;
}

.diy-form-field input.error,
.diy-form-field select.error {
    border-color: #e74c3c;
    background: #fee;
}

/* Duration options visibility */
.duration-options {
    display: none;
}

.duration-options.active {
    display: block;
}

/* Ensure checkboxes are always clickable */
.room-upgrades {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
    position: relative;
    z-index: 1;
}

.room-upgrades label {
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.room-upgrades label:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.room-upgrades input[type=checkbox] {
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
    cursor: pointer;
    width: auto;
}

/* Ensure no overlapping elements */
.duration-options:not(.active) {
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

/* Total section */
.total-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.total-section h3 {
    margin-top: 0;
}

.total-amount {
    font-size: 2.2em;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: opacity 0.2s ease;
}

/* Submit button */
.submit-btn {
    background: linear-gradient(135deg, #6772e5 0%, #24292e 100%);
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    position: relative;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Info boxes */
.info-box {
    background: #e8f6ff;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin: 20px 0;
}

.discount-note {
    background: #d5edda;
    border-left: 4px solid #28a745;
    padding: 12px;
    margin: 10px 0;
    font-size: 14px;
}

.discount-applied {
    background: #28a745;
    color: #fff;
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 4px;
    font-size: 14px;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Error messages */
.form-error {
    background: #e74c3c;
    color: #fff;
    padding: 12px;
    margin: 15px 0;
    border-radius: 6px;
    text-align: center;
}

/* Stripe status messages */
.stripe-status {
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: center;
}

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

.stripe-canceled {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

/* Responsive */
@media (max-width: 768px) {
    .diy-form-row {
        flex-direction: column;
    }
    
    .room-upgrades {
        grid-template-columns: 1fr;
    }
}

