/* Meadows W2L Plugin Styles */
.meadows-w2l-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.meadows-w2l-form, 
.meadows-w2l-form label {
    font-family: Lato, sans-serif;
}

.meadows-w2l-form div.field {
    margin-bottom: .75rem;
    width: 100%;
}

.meadows-w2l-form div.field label, 
.meadows-w2l-form div.field span.label {
    display: inline-block;
    width: 100%;
    text-transform: uppercase;
    padding-top: 5px;
    padding-bottom: 2px;
    letter-spacing: .75px;
}

.meadows-w2l-form div.field span.checkbox-label {
    display: inline-block;
    width: 75px;
    text-transform: uppercase; 
    padding-top: 5px;
    padding-bottom: 2px; 
    padding-bottom: 5px;
}

.meadows-w2l-form div.field input {
    width: 100%;
    padding: 5px;
}

.meadows-w2l-form div.field textarea {
    width: 100%;
    padding: 5px;
}

.meadows-w2l-form div.field select {
    width: 99%; 
    padding: 5px;
}

.meadows-w2l-form div.field input[type="checkbox"] {
    display: inline-block;
    width: 16px; 
    height: 16px;
}

.meadows-w2l-form p {
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}

.meadows-w2l-form input[type="submit"] {
    background-color: #4C536B;
    color: #f4F0E9;
    border-radius: 0; 
    border: 1px solid #4C536B; 
    font-size: 16px; 
    padding: calc(0.667em + 2px) calc(1.333em + 2px);
    text-transform: uppercase; 
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.meadows-w2l-form input[type="submit"]:hover {
    background-color: #3a3f52;
    border-color: #3a3f52;
}

.meadows-w2l-form input[type="submit"]:disabled {
    background-color: #cccccc;
    border-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* reCAPTCHA v2 and form submission styles */
.recaptcha-field {
    margin: 20px 0 !important;
}

.recaptcha-field .g-recaptcha {
    transform: scale(0.8);
    transform-origin: 0 0;
}

.recaptcha-notice {
    margin: 10px 0;
    font-size: 12px;
    color: #666;
}

.recaptcha-notice a {
    color: #4C536B;
    text-decoration: underline;
}

.form-submit-wrapper {
    position: relative;
    display: inline-block;
}

.form-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    color: #4C536B;
    border: 1px solid #ddd;
}

.form-loading span {
    display: inline-block;
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    80%, 100% {
        opacity: 0;
    }
}

.form-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 14px;
}

.form-success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 14px;
}

@media (max-width: 480px) {
    .recaptcha-field .g-recaptcha {
        transform: scale(0.7);
    }
}aptcha-notice a {
    color: #4C536B;
    text-decoration: underline;
}

.form-submit-wrapper {
    position: relative;
    display: inline-block;
}

.form-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    color: #4C536B;
    border: 1px solid #ddd;
}

.form-loading span {
    display: inline-block;
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    80%, 100% {
        opacity: 0;
    }
}

.form-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 14px;
}

.form-success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .meadows-w2l-form div.field[style*="width:49%"],
    .meadows-w2l-form div.field[style*="width:45%"],
    .meadows-w2l-form div.field[style*="width:30%"] {
        width: 100% !important;
        margin-right: 0 !important;
        display: block !important;
    }
}

/* Fix for inline fields on mobile */
@media (max-width: 480px) {
    .meadows-w2l-form div.field {
        display: block !important;
        width: 100% !important;
        margin-right: 0 !important;
    }
}