﻿* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.contact-form-custom {
    pointer-events: auto !important;
}

.contact-form-section {
    padding: 80px 0;
    background: #f9f9f9;
    overflow-x: hidden;
}

.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 50px 40px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.contact-form-title {
    text-align: center;
    margin-bottom: 40px;
}

    .contact-form-title h2 {
        font-size: 32px;
        font-weight: 700;
        color: #222;
        margin-bottom: 15px;
    }

    .contact-form-title .bar {
        width: 80px;
        height: 4px;
        background: linear-gradient(to right, #00d4ff, #0099ff);
        margin: 0 auto 20px;
        border-radius: 2px;
    }

    .contact-form-title p {
        color: #666;
        font-size: 15px;
    }

.form-group {
    margin-bottom: 25px;
}

    .form-group label {
        display: block;
        font-size: 15px;
        font-weight: 600;
        color: #333;
        margin-bottom: 8px;
    }

        .form-group label .required {
            color: #ff4444;
            margin-right: 3px;
        }

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

    .form-control:focus {
        outline: none;
        border-color: #0099ff;
        box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.1);
    }

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(to right, #0099ff, #00d4ff);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .submit-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(0, 153, 255, 0.3);
    }

    .submit-btn:active:not(:disabled) {
        transform: translateY(0);
    }

    .submit-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.g-recaptcha {
    display: flex;
    justify-content: center;
    align-items: center;
    transform-origin: center;
    max-width: 100%;
    overflow: hidden;
}

    .g-recaptcha > div {
        max-width: 100%;
    }

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: none;
    font-size: 14px;
    line-height: 1.6;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 30px 20px;
    }

    .contact-form-title h2 {
        font-size: 24px;
    }

    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
    }
}

@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.77);
        transform-origin: center;
    }
}