/**
 * Maestro Contact Form Styles
 * Mobile-first design
 */

.maestro-contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.contact-form-title {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin: 0 0 10px;
}

.contact-form-subtitle {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin: 0 0 30px;
}

.maestro-contact-form {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.maestro-contact-form .form-group {
    margin-bottom: 20px;
}

.maestro-contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.maestro-contact-form label .required {
    color: #c41e3a;
}

.maestro-contact-form input[type="text"],
.maestro-contact-form input[type="tel"],
.maestro-contact-form input[type="email"],
.maestro-contact-form select,
.maestro-contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.maestro-contact-form input:focus,
.maestro-contact-form select:focus,
.maestro-contact-form textarea:focus {
    outline: none;
    border-color: #c41e3a;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.maestro-contact-form select {
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 16px center;
    cursor: pointer;
}

.maestro-contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.maestro-contact-form input::placeholder,
.maestro-contact-form textarea::placeholder {
    color: #999;
}

/* Submit Button */
.btn-submit-contact {
    display: block;
    width: 100%;
    padding: 16px 30px;
    background: #c41e3a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-submit-contact:hover {
    background: #a01830;
}

.btn-submit-contact:active {
    transform: scale(0.98);
}

.btn-submit-contact:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-submit-contact.loading {
    position: relative;
    color: transparent;
}

.btn-submit-contact.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Form Messages */
.form-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

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

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Desktop styles */
@media (min-width: 768px) {
    .maestro-contact-form-wrapper {
        padding: 40px 20px;
    }

    .contact-form-title {
        font-size: 32px;
    }

    .maestro-contact-form {
        padding: 40px;
    }
}
