/**
 * CWC Contact Form Styles
 * Matching to exact UI from Contact page
 * Updated color scheme to #87A956
 */

/* Grid Layout */
.cwc-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .cwc-contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Container - Exact match to Contact page */
.cwc-contact-form-wrapper {
    width: 100% !important;
    max-width: 100% !important;
}

.cwc-contact-form-container {
    background-color: #ffffff !important;
    border-radius: 1rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    padding: 2rem !important;
    margin: 0 auto !important;
}

@media (min-width: 1024px) {
    .cwc-contact-form-container {
        padding: 3rem !important;
    }
}

/* Title */
.cwc-contact-title {
    font-family: 'Barlow Semi Condensed', sans-serif !important;
    font-size: clamp(1.8rem, 3vw, 2.5rem) !important;
    color: #87A956 !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
}

/* Description */
.cwc-contact-description {
    color: #666666 !important;
    margin-bottom: 2rem !important;
    line-height: 1.6 !important;
    font-size: 1rem !important;
}

/* Form */
.cwc-contact-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
}

/* Form Groups */
.cwc-form-group {
    display: flex !important;
    flex-direction: column !important;
}

.cwc-form-group label {
    display: block !important;
    color: #434844 !important;
    font-weight: 500 !important;
    margin-bottom: 0.5rem !important;
    font-size: 1rem !important;
}

/* Input Fields */
.cwc-form-group input[type="text"],
.cwc-form-group input[type="email"],
.cwc-form-group input[type="tel"],
.cwc-form-group select,
.cwc-form-group textarea {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    background-color: #ffffff !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.cwc-form-group input:hover,
.cwc-form-group select:hover,
.cwc-form-group textarea:hover {
    border-color: #d1d5db !important;
}

.cwc-form-group input:focus,
.cwc-form-group select:focus,
.cwc-form-group textarea:focus {
    outline: none !important;
    border-color: #87A956 !important;
    box-shadow: 0 0 0 3px rgba(135, 169, 86, 0.2) !important;
}

.cwc-form-group textarea {
    resize: vertical !important;
    min-height: 120px !important;
}

/* Radio Group */
.cwc-radio-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

@media (min-width: 640px) {
    .cwc-radio-group {
        flex-direction: row !important;
        gap: 1.5rem !important;
    }
}

.cwc-radio-label {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    cursor: pointer !important;
    color: #434844 !important;
    font-size: 1rem !important;
}

.cwc-radio-label input[type="radio"] {
    width: auto !important;
    margin: 0 !important;
    margin-right: 0.5rem !important;
    cursor: pointer !important;
}

.cwc-radio-label span {
    user-select: none !important;
}

/* Submit Button */
.cwc-contact-form button.cwc-submit-btn,
button.cwc-submit-btn,
.cwc-submit-btn {
    width: 100% !important;
    background-color: #87A956 !important;
    color: #ffffff !important;
    padding: 1rem 2rem !important;
    border: 2px solid #87A956 !important;
    border-radius: 50px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
    text-decoration: none !important;
    display: block !important;
    text-align: center !important;
    margin-top: 2rem !important;
}

.cwc-contact-form button.cwc-submit-btn:hover,
button.cwc-submit-btn:hover,
.cwc-submit-btn:hover {
    background-color: #A8C5A8 !important;
    border-color: #A8C5A8 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(135, 169, 86, 0.3) !important;
}

.cwc-contact-form button.cwc-submit-btn:disabled,
button.cwc-submit-btn:disabled,
.cwc-submit-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Response Messages */
.cwc-form-response {
    margin-top: 1rem !important;
    padding: 1rem !important;
    border-radius: 0.5rem !important;
    display: none !important;
}

.cwc-form-response.success {
    display: block !important;
    background-color: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}

.cwc-form-response.error {
    display: block !important;
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
}

/* Quick Contact Section */
.cwc-quick-contact-text {
    font-size: 0.875rem !important;
    color: #666666 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    text-align: center !important;
}

.cwc-quick-contact-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-top: 1.5rem !important;
}

@media (min-width: 640px) {
    .cwc-quick-contact-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

.cwc-quick-contact-btn {
    background-color: #faf6ee !important;
    border: 1px solid rgba(135, 169, 86, 0.2) !important;
    padding: 1rem !important;
    border-radius: 0.75rem !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.cwc-quick-contact-btn:hover {
    background-color: #87A956 !important;
    border-color: #87A956 !important;
}

.cwc-quick-icon {
    font-size: 1.5rem !important;
    color: #87A956 !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
    transition: color 0.3s ease !important;
}

.cwc-quick-contact-btn:hover .cwc-quick-icon {
    color: #ffffff !important;
}

.cwc-quick-label {
    color: #434844 !important;
    font-size: 0.875rem !important;
    transition: color 0.3s ease !important;
}

.cwc-quick-contact-btn:hover .cwc-quick-label {
    color: #ffffff !important;
}

/* Info Cards - Right Column */
.cwc-contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cwc-info-card {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    transition: box-shadow 0.3s ease;
}

@media (min-width: 1024px) {
    .cwc-info-card {
        padding: 3rem;
    }
}

.cwc-info-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.cwc-info-icon {
    font-size: 3rem;
    color: #87A956;
    margin-bottom: 1.5rem;
}

.cwc-info-title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #87A956;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cwc-info-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: #87A956;
    margin-bottom: 1rem;
}

.cwc-info-address {
    font-size: 1.125rem;
    color: #434844;
    margin-bottom: 0.5rem;
}

.cwc-info-city {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 1.5rem;
}

.cwc-info-btn {
    display: inline-block;
    color: #87A956;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid #87A956;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cwc-info-btn:hover {
    background-color: #87A956;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(135, 169, 86, 0.3);
}

/* Business Hours */
.cwc-hours-list {
    margin-bottom: 1.5rem;
}

.cwc-hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.cwc-hours-item:last-child {
    border-bottom: none;
}

.cwc-hours-day {
    font-weight: 500;
    color: #434844;
}

.cwc-hours-time {
    color: #666666;
}

.cwc-hours-note {
    font-size: 0.875rem;
    color: #666666;
}

.cwc-warning-icon {
    display: inline-block;
    background-color: #faf6ee;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.5rem;
}

/* Contact Details */
.cwc-contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cwc-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cwc-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: rgba(135, 169, 86, 0.1);
    border-radius: 50%;
    color: #87A956;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Ensure Font Awesome icons are loaded */
.cwc-contact-icon .fas,
.cwc-contact-icon .fab,
.cwc-quick-icon .fas,
.cwc-quick-icon .fab,
.cwc-info-btn .fas,
.cwc-info-btn .fab {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 3rem;
    text-align: center;
}

.cwc-contact-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: #434844;
    margin-bottom: 0.25rem;
}

.cwc-contact-subtext {
    font-size: 0.875rem;
    color: #666666;
}

.cwc-contact-link {
    display: inline-block;
    color: #87A956;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: text-decoration 0.3s ease;
}

.cwc-contact-link:hover {
    text-decoration: underline;
}

/* Email Card */
.cwc-email-address {
    font-size: 1.125rem;
    font-weight: 500;
    color: #434844;
    margin-bottom: 0.5rem;
}

.cwc-email-note {
    font-size: 0.875rem;
    color: #666666;
    margin-bottom: 1.5rem;
}
