/**
 * Cooper Booking Form Styles
 * Professional booking form styling adapted from Next.js version
 * 
 * @package CooperBookingForm
 * @version 1.0.0
 * @author Cooper Team
 * 
 * This stylesheet provides responsive, modern styling for the booking form
 * Compatible with all modern browsers and WordPress themes
 */

.cooper-booking-wrapper {
    max-width: 930px;
    margin: 60px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cooper-booking-header {
    margin-bottom: 32px;
}

.cooper-booking-title {
    font-size: 32px;
    font-weight: 700;
    color: #2a2a2a;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .cooper-booking-title {
        font-size: 24px;
    }
}

.cooper-booking-subtitle {
    font-size: 16px;
    color: #2a2a2a;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.cooper-booking-subtitle-secondary {
    font-size: 16px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

/* Form Styles */
.cooper-booking-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.cooper-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 20px;
}

@media (min-width: 768px) {
    .cooper-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.cooper-form-field {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.cooper-form-field label {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
}

.cooper-form-field label > span {
    font-size: 14px;
    font-weight: 500;
    color: #2a2a2a;
}

.cooper-input {
    padding: 12px;
    border: 1px solid #d7d7d7;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    width: 100%;
    transition: border-color 0.2s ease;
}

.cooper-input:focus {
    outline: none;
    border-color: #3D8750;
}

.cooper-textarea {
    padding: 12px;
    border: 1px solid #d7d7d7;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    width: 100%;
    transition: border-color 0.2s ease;
}

.cooper-textarea:focus {
    outline: none;
    border-color: #3D8750;
}

/* Fieldset for radio buttons */
.cooper-fieldset {
    width: 100%;
    border: none;
    padding: 0;
    margin: 0;
}

.cooper-legend {
    margin: 0 0 16px 0;
    padding: 0;
    font-size: 16px;
    font-weight: 500;
    color: #2a2a2a;
}

.cooper-radio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
}

@media (min-width: 768px) {
    .cooper-radio-grid {
        grid-template-columns: 1fr 1fr;
        padding: 0 20px;
    }
}

.cooper-radio-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.cooper-radio {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    position: relative;
    border-radius: 50%;
    border: 2px solid #FF6B35;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin-top: 2px;
    transition: all 0.2s ease;
}

.cooper-radio:checked::after {
    content: '';
    border-radius: 50%;
    background: #FF6B35;
    width: 8px;
    height: 8px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.cooper-radio-text {
    font-size: 16px;
    color: #2a2a2a;
    line-height: 1.4;
}

.cooper-price-note {
    display: block;
    font-size: 14px;
    color: #666666;
    margin-top: 4px;
}

/* Submit button */
.cooper-submit-button {
    background: #3D8750;
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

@media (min-width: 768px) {
    .cooper-submit-button {
        width: auto;
    }
}

.cooper-submit-button:hover:not(:disabled) {
    background: #2d6a3d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(61, 135, 80, 0.3);
}

.cooper-submit-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.cooper-booking-note {
    font-size: 14px;
    color: #666666;
    margin: 0;
    line-height: 1.6;
}

/* Success state */
.cooper-booking-success {
    text-align: center;
    padding: 40px 20px;
}

.cooper-success-icon {
    margin: 0 auto 24px;
    display: flex;
    justify-content: center;
}

.cooper-success-title {
    font-size: 28px;
    font-weight: 700;
    color: #2a2a2a;
    margin: 0 0 16px 0;
}

.cooper-success-text {
    font-size: 16px;
    color: #666666;
    line-height: 1.6;
    margin: 0 0 32px 0;
}

.cooper-back-button {
    display: inline-block;
    background: transparent;
    color: #3D8750;
    border: 2px solid #3D8750;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cooper-back-button:hover {
    background: #3D8750;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(61, 135, 80, 0.3);
}

/* Loading state */
.cooper-submit-button.loading {
    position: relative;
    color: transparent;
}

.cooper-submit-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Error message */
.cooper-error-message {
    background: #fff0f0;
    border: 1px solid #ffcccc;
    border-radius: 6px;
    padding: 12px 16px;
    color: #cc0000;
    font-size: 14px;
    margin-bottom: 16px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cooper-booking-wrapper {
        margin: 20px auto;
        padding: 16px;
    }
    
    .cooper-booking-header {
        margin-bottom: 24px;
    }
    
    .cooper-booking-form {
        gap: 20px;
    }
}

