/* ================= HERO ================= */

.contact-hero {
    background: linear-gradient(135deg, rgba(194, 29, 21, 0.05), rgba(33, 18, 92, 0.05));
    padding: 40px 0;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0.9;
}

.contact-hero .container {
    position: relative;
    z-index: 1;
}

.contact-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    padding-bottom: 20px;
    position: relative;
}

.contact-hero h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 3px;
    background: var(--red);
    animation: slideIn 0.6s ease-out;
}

.contact-hero p {
    font-size: 1.1rem;
    color: #666;
    margin-top: 20px;
    line-height: 1.7;
}

@keyframes slideIn {
    from {
        width: 0;
    }

    to {
        width: 80px;
    }
}

/* ================= GRID ================= */

.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* ================= INFO CARD ================= */

.contact-info-card,
.contact-form-container {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-info-card h2,
.contact-form-container h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 30px;
    padding-bottom: 15px;
    position: relative;
}

.contact-info-card h2::after,
.contact-form-container h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 2px;
    background: var(--red);
}

/* ================= CONTACT ITEM ================= */

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 15px;
    border-radius: 8px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--red), #a01812);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(194, 29, 21, 0.3);
}

.contact-item-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.contact-item-content p {
    color: #666;
    margin: 0;
    line-height: 1.7;
}

.contact-item-content a {
    color: #666;
    text-decoration: none;
    position: relative;
    transition: color 0.25s ease;
}

.contact-item-content a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.3s ease;
}

.contact-item-content a:hover {
    color: var(--red);
}

.contact-item-content a:hover::after {
    width: 100%;
}

/* ================= FORM ================= */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.form-group:focus-within label {
    color: var(--red);
}

.form-group input,
.form-group textarea {
    padding: 15px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #ccc;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(194, 29, 21, 0.1);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* ================= CHECKBOX ================= */

.form-group-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-group-checkbox input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    background: #f9f9f9;
    transition: all 0.25s ease;
    margin-top: 3px;
}

.form-group-checkbox input[type="checkbox"]:hover {
    border-color: var(--red);
}

.form-group-checkbox input[type="checkbox"]:checked {
    background: var(--red);
    border-color: var(--red);
}

.form-group-checkbox input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-group-checkbox input:focus {
    box-shadow: 0 0 0 4px rgba(194, 29, 21, 0.1);
}

.form-group-checkbox label {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    cursor: pointer;
}

/* ================= BUTTON ================= */

.submit-btn {
    background: linear-gradient(135deg, var(--red), #a01812);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(194, 29, 21, 0.3);
    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 {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(194, 29, 21, 0.4);
}

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

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

/* ================= MAP ================= */

.map-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
    width: 100%;
    height: 500px;
    border: 0;
    display: block;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-card,
    .contact-form-container {
        padding: 35px;
    }
}

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2rem;
    }

    .contact-info-card,
    .contact-form-container {
        padding: 25px;
    }

    .submit-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
}