/* Enhanced Service Selection Form Styles */

/* Service Selection Dropdown Enhancement */
.service-selection-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.service-selection-label {
    display: block;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #00f3ff 0%, #0011ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-select {
    width: 100% !important;
    padding: 16px 20px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    border: 2px solid rgba(0, 243, 255, 0.3) !important;
    border-radius: 15px !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-family: "Montserrat", sans-serif !important;
    cursor: pointer !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300f3ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 22px !important;
    padding-right: 50px !important;
    position: relative !important;
    overflow: hidden !important;
}

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

.service-select:hover::before {
    left: 100%;
}

.service-select:hover {
    border-color: rgba(0, 243, 255, 0.6);
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.08) 0%, rgba(0, 17, 255, 0.05) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 243, 255, 0.3);
}

.service-select:focus {
    outline: none;
    border-color: #00f3ff;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.12) 0%, rgba(0, 17, 255, 0.08) 100%);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4), 0 8px 25px rgba(0, 243, 255, 0.2);
    transform: translateY(-3px);
}

.service-select option {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    padding: 12px 16px;
    border: none;
    font-weight: 500;
}

.service-select option:hover {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.2) 0%, rgba(0, 17, 255, 0.15) 100%);
    color: #00f3ff;
}

/* Service Selection Cards Alternative */
.service-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1) 0%, rgba(0, 17, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    border-color: rgba(0, 243, 255, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 243, 255, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card.selected {
    border-color: #00f3ff;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.15) 0%, rgba(0, 17, 255, 0.1) 100%);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.4);
}

.service-card.selected::before {
    opacity: 1;
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #00f3ff;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

.service-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.service-description {
    font-size: 0.85rem;
    color: #cccccc;
    line-height: 1.4;
}

/* Enhanced Form Container */
.service-form-container,
.contact-form .service-form-container,
.modal-form.service-form-container {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(45, 45, 45, 0.9) 100%) !important;
    border-radius: 25px !important;
    padding: 40px !important;
    border: 1px solid rgba(0, 243, 255, 0.2) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 243, 255, 0.1) !important;
    backdrop-filter: blur(20px) !important;
    position: relative !important;
    overflow: hidden !important;
}

.modal-form.service-form-container {
    padding: 30px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

.service-form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Section Headers */
.form-section-header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.form-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00f3ff 0%, #0011ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-section-subtitle {
    font-size: 1rem;
    color: #cccccc;
    opacity: 0.8;
}

/* Enhanced Input Fields */
.service-form-input,
.service-form-container .form-group input[type="text"],
.service-form-container .form-group input[type="email"],
.service-form-container .form-group input[type="tel"],
.service-form-container .form-group textarea {
    width: 100% !important;
    padding: 16px 20px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 15px !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-family: "Montserrat", sans-serif !important;
}

.service-form-input::placeholder,
.service-form-container .form-group input::placeholder,
.service-form-container .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    font-weight: 400 !important;
}

.service-form-input:hover,
.service-form-container .form-group input:hover,
.service-form-container .form-group textarea:hover {
    border-color: rgba(0, 243, 255, 0.4) !important;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.05) 0%, rgba(0, 17, 255, 0.03) 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 243, 255, 0.2) !important;
}

.service-form-input:focus,
.service-form-container .form-group input:focus,
.service-form-container .form-group textarea:focus {
    outline: none !important;
    border-color: #00f3ff !important;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.08) 0%, rgba(0, 17, 255, 0.05) 100%) !important;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3), 0 8px 25px rgba(0, 243, 255, 0.15) !important;
    transform: translateY(-3px) !important;
}

/* Submit Button Enhancement */
.service-submit-btn {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #00f3ff 0%, #0011ff 100%);
    color: #000000;
    border: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.4);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

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

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

.service-submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 243, 255, 0.6);
}

.service-submit-btn:active {
    transform: translateY(-2px);
}

/* Loading State */
.service-submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.service-submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #000000;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.service-form-message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

.service-form-message.show {
    opacity: 1;
    transform: translateY(0);
}

.service-form-message.success {
    background: linear-gradient(135deg, rgba(0, 255, 100, 0.2) 0%, rgba(0, 200, 80, 0.1) 100%);
    border: 2px solid rgba(0, 255, 100, 0.5);
    color: #00ff64;
    box-shadow: 0 5px 20px rgba(0, 255, 100, 0.3);
}

.service-form-message.error {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.2) 0%, rgba(255, 80, 80, 0.1) 100%);
    border: 2px solid rgba(255, 100, 100, 0.5);
    color: #ff6464;
    box-shadow: 0 5px 20px rgba(255, 100, 100, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-form-container {
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .service-cards-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .service-select {
        padding: 14px 16px;
        padding-right: 45px;
        font-size: 0.95rem;
    }
    
    .service-form-input {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
    
    .service-submit-btn {
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .form-section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .service-form-container {
        padding: 20px 15px;
    }
    
    .service-card {
        padding: 15px;
    }
    
    .service-icon {
        font-size: 1.5rem;
    }
    
    .service-title {
        font-size: 0.9rem;
    }
    
    .service-description {
        font-size: 0.8rem;
    }
}

/* Animation for form appearance */
@keyframes formSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-form-container {
    animation: formSlideIn 0.8s ease-out;
}

/* Focus ring enhancement */
.service-select:focus-visible,
.service-form-input:focus-visible {
    outline: 2px solid #00f3ff;
    outline-offset: 2px;
}

/* Disabled state */
.service-select:disabled,
.service-form-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
}

.service-select:disabled:hover,
.service-form-input:disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.1);
}
