/**
 * TAXI CLERMONT 63 - Contact CSS
 * Styles spécifiques à la page Contact
 */

/* ============================================
   HERO SECTION CONTACT
============================================= */
.hero-wrapper {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bg-clermont63.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.9) 0%,
        rgba(10, 10, 10, 0.65) 30%,
        rgba(10, 10, 10, 0.5) 50%,
        rgba(10, 10, 10, 0.7) 80%,
        rgba(10, 10, 10, 0.95) 100%
    );
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* ============================================
   FORM STYLES
============================================= */
.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #F5C518;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.form-input.success {
    border-color: #22c55e;
}

.form-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 8px;
}

.form-label .required {
    color: #F5C518;
}

.form-error {
    display: none;
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    align-items: center;
    gap: 6px;
}

.form-error.visible {
    display: flex;
}

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

/* Textarea */
.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Select */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    padding-right: 50px;
    cursor: pointer;
}

.form-select option {
    background: #1a1a1a;
    color: #ffffff;
}

/* Submit button */
.form-submit {
    width: 100%;
    background: #F5C518;
    color: #0a0a0a;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 18px 32px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.form-submit:hover::before {
    left: 100%;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(245, 197, 24, 0.25);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-submit .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(10, 10, 10, 0.3);
    border-top-color: #0a0a0a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.form-submit.loading .spinner {
    display: block;
}

.form-submit.loading .btn-text {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success message */
.form-success {
    display: none;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.form-success.visible {
    display: block;
}

/* Contact card hover */
.contact-card {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 197, 24, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
    background: rgba(245, 197, 24, 0.25);
}

.contact-icon {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
