/* === FUTURISTIC FORM ENHANCEMENTS === */

/* --- Input Wrapper Styles --- */
.input-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-cyan);
    font-size: 1.1rem;
    transition: var(--transition);
    z-index: 2;
    pointer-events: none;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 14px 15px 14px 45px;
    background: #ffffff;
    /* White Input */
    border: 1px solid #cbd5e1;
    /* Visible Border */
    border-radius: 8px;
    color: var(--text-light);
    /* Dark Text */
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: var(--transition);
}

.input-wrapper textarea {
    padding-top: 18px;
    resize: vertical;
    min-height: 100px;
}

/* --- Floating Labels --- */
.floating-label {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    padding: 0 5px;
}

.input-wrapper input:focus~.floating-label,
.input-wrapper input:not(:placeholder-shown)~.floating-label,
.input-wrapper input:valid~.floating-label,
.input-wrapper select:focus~.floating-label,
.input-wrapper select:valid:not([value=""])~.floating-label,
.input-wrapper textarea:focus~.floating-label,
.input-wrapper textarea:not(:placeholder-shown)~.floating-label {
    top: -8px;
    left: 40px;
    font-size: 0.75rem;
    color: var(--accent-cyan);
    background: #ffffff;
    /* White background to match Form Card */
    padding: 0 5px;
}

/* --- Input Border Animation --- */
.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--secondary-color));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.input-wrapper input:focus~.input-border,
.input-wrapper select:focus~.input-border,
.input-wrapper textarea:focus~.input-border {
    width: 100%;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.05);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.input-wrapper input:focus~.input-icon,
.input-wrapper select:focus~.input-icon,
.input-wrapper textarea:focus~.input-icon {
    color: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

/* --- File Upload Area --- */
.file-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: #f8fafc;
    /* Light Gray */
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.file-upload-area::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.file-upload-area:hover::before,
.file-upload-area.drag-over::before {
    opacity: 1;
}

.file-upload-area:hover {
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.05);
}

.file-upload-area.drag-over {
    border-color: var(--secondary-color);
    background: rgba(245, 158, 11, 0.05);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    color: var(--accent-cyan);
    margin-bottom: 15px;
    display: block;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.upload-text {
    color: var(--text-light);
    margin: 0;
}

.upload-main {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.upload-sub {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* --- File Preview --- */
.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.file-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-item .remove-file {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: var(--transition);
}

.file-preview-item .remove-file:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* --- Enhanced Submit Button --- */
.submit-btn {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.submit-btn .btn-icon {
    transition: transform 0.3s;
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* --- OR Divider Enhancement --- */
.or-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.or-divider::before,
.or-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.or-divider::before {
    left: 0;
}

.or-divider::after {
    right: 0;
}

.or-divider span {
    background: #ffffff;
    /* White background to match Form Card */
    padding: 0 15px;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
}

/* --- WhatsApp Button Enhancement --- */
.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e, #075e54);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    transform: translateY(-2px);
}

/* --- Select Styling --- */
.input-wrapper select {
    appearance: none;
    background-image: 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='%2306b6d4' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
}

.input-wrapper select option {
    background: var(--primary-light);
    color: var(--text-light);
    padding: 10px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {

    .input-wrapper input,
    .input-wrapper select,
    .input-wrapper textarea {
        padding: 12px 15px 12px 40px;
        font-size: 0.9rem;
    }

    .input-icon {
        font-size: 1rem;
        left: 12px;
    }

    .floating-label {
        left: 40px;
        font-size: 0.9rem;
    }

    .file-upload-area {
        padding: 30px 15px;
    }

    .upload-icon {
        font-size: 2.5rem;
    }
}