/**
 * WP Catalog Mode - Frontend Styles
 */

/* Utility: hidden state */
.wpcm-hidden {
    display: none !important;
}

/* Enquiry form wrapper */
.wpcm-enquiry-form-wrapper {
    max-width: 640px;
    margin: 32px 0;
    padding: 32px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-sizing: border-box;
}

.wpcm-enquiry-form-wrapper *,
.wpcm-enquiry-form-wrapper *::before,
.wpcm-enquiry-form-wrapper *::after {
    box-sizing: border-box;
}

.wpcm-enquiry-form-wrapper h3 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #1f2937;
}

.wpcm-form-subtitle {
    margin: 0 0 24px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

/* Form reset — override theme .button / form defaults */
.wpcm-enquiry-form {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Form rows */
.wpcm-form-row {
    margin-bottom: 18px;
}

.wpcm-form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.wpcm-form-row label .required {
    color: #dc2626;
}

.wpcm-form-row input[type="text"],
.wpcm-form-row input[type="email"],
.wpcm-form-row input[type="tel"],
.wpcm-form-row textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    color: #1f2937;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpcm-form-row input:focus,
.wpcm-form-row textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.wpcm-form-row textarea {
    resize: vertical;
    min-height: 120px;
}

/* reCAPTCHA row */
.wpcm-recaptcha-row {
    margin-bottom: 20px;
}

/* Honeypot field - hidden from users */
.wpcm-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Submit row */
.wpcm-form-submit {
    margin-top: 24px;
    margin-bottom: 0;
}

/* Submit button — no .button dependency */
.wpcm-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #2c3e50;
    color: #ffffff;
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    min-width: 160px;
    max-width: 100%;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}

.wpcm-submit-button:hover,
.wpcm-submit-button:focus {
    background-color: #1a252f;
    color: #ffffff;
    outline: none;
}

.wpcm-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Response messages */
.wpcm-form-response {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.wpcm-form-response.wpcm-success {
    display: block;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.wpcm-form-response.wpcm-error {
    display: block;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Validation error state */
.wpcm-form-row input.wpcm-invalid,
.wpcm-form-row textarea.wpcm-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Responsive */
@media (max-width: 600px) {
    .wpcm-enquiry-form-wrapper {
        padding: 20px;
        margin: 20px 0;
    }

    .wpcm-submit-button {
        width: 100%;
    }
}
