/**
 * XLL Contact Form - Frontend Styles
 * Based on Figma Make design
 */

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

/* Messages */
.xll-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
}

.xll-message-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.xll-message-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Form */
.xll-contact-form {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.xll-form-grid {
    display: grid;
    gap: 20px;
}

.xll-form-field-full {
    grid-column: 1 / -1;
}

.xll-form-field-half {
    grid-column: span 1;
}

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

@media (max-width: 767px) {
    .xll-form-field-half {
        grid-column: 1 / -1;
    }
}

/* Form Labels */
.xll-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 8px;
}

.label-icon {
    font-size: 16px;
}

.required {
    color: #dc2626;
    font-weight: 700;
}

/* Form Inputs */
.xll-form-input,
.xll-form-select,
.xll-form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.xll-form-input:focus,
.xll-form-select:focus,
.xll-form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.xll-form-input::placeholder,
.xll-form-textarea::placeholder {
    color: #9ca3af;
}

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

/* Reservation Fields */
.xll-reservation-fields {
    grid-column: 1 / -1;
    display: grid;
    gap: 20px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
    .xll-reservation-fields {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Privacy Notice */
.xll-privacy-notice {
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.xll-privacy-notice h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.xll-privacy-notice p {
    font-size: 12px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

/* Submit Button */
.xll-form-submit {
    text-align: center;
    margin-top: 10px;
}

.xll-submit-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #030213;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.xll-submit-button:hover {
    background: #1f2937;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.xll-submit-button:active {
    transform: translateY(0);
}

.xll-submit-button:disabled,
.xll-submit-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.xll-submit-button.loading::after {
    content: '...';
    animation: loading 1s infinite;
}

@keyframes loading {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.button-icon {
    font-size: 18px;
}

/* Responsive */
@media (max-width: 767px) {
    .xll-contact-form-wrapper {
        padding: 10px;
    }

    .xll-contact-form {
        padding: 20px;
    }

    .xll-submit-button {
        width: 100%;
        padding: 16px 24px;
    }
}
