/* Contact Form Redesign - Modern Style */

/* Override parent container */
.contact-section {
    max-width: 100% !important;
    padding: 0 2rem !important;
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #149ddd;
}

.form-container {
    max-width: 600px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #b0b0b0;
    margin-bottom: 0.6rem;
    text-align: left;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    text-align: left;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #149ddd;
    box-shadow: 0 0 0 3px rgba(20, 157, 221, 0.1);
}

.form-control::placeholder {
    color: rgba(176, 176, 176, 0.5);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

#messageCounter {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #888;
    text-align: right;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #149ddd 0%, #0f76a5 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.submit-btn::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.5s ease;
}

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

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(20, 157, 221, 0.3);
}

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

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form feedback messages */
.form-message {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

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

.form-message.success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

/* Light theme compatibility */
.light-theme .form-container {
    background: rgba(20, 157, 221, 0.05);
    border-color: rgba(20, 157, 221, 0.15);
}

.light-theme .form-control {
    background: rgba(20, 157, 221, 0.08);
    border-color: rgba(20, 157, 221, 0.2);
    color: #2a2a2a;
}

.light-theme .form-control:focus {
    background: rgba(20, 157, 221, 0.12);
}

.light-theme .form-group label {
    color: #555;
}

.light-theme #messageCounter {
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .form-container {
        padding: 2rem 1.5rem;
    }

    .contact-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 1.5rem 1rem;
    }

    .submit-btn {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
}