.contact-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 5% 60px;
    box-sizing: border-box;
}

.contact-card {
    background-color: #fcfcfc;
    border: 2px solid #e6e6e6;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-map {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eaeaea;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: space-between;
    align-items: flex-start;
}

.contact-info {
    flex: 1 1 300px;
}

.contact-info h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    display: inline-block;
}

.contact-info p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.contact-info strong {
    color: #222;
}

.contact-info p a {
    color: #555;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 4px;
    transition: color 0.2s ease, text-decoration-style 0.2s ease;
}

.contact-info p a:hover {
    color: #222;
    text-decoration-style: solid;
}

.map-link-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: white;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #333;
    text-decoration: none;
    font-weight: bold;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.map-link-overlay:hover {
    background-color: #f8f8f8;
    transform: translateY(-2px);
}

.contact-form-container {
    flex: 1 1 400px;
}

.contact-form-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    display: inline-block;
}

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

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

.form-group label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

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

.submit-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    margin-top: 5px;
}

.submit-btn:hover {
    background-color: #555;
}

@media (max-width: 768px) {
    .contact-wrapper {
        padding: 10px 4% 40px;
    }

    .contact-content {
        flex-direction: column;
        gap: 30px;
    }

    .contact-card {
        padding: 20px;
        gap: 25px;
    }

    .contact-map {
        height: 250px;
    }

    .map-link-overlay {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .contact-info h3,
    .contact-form-container h3 {
        font-size: 1.25em;
    }

    .contact-info p {
        font-size: 1em;
    }

    .submit-btn {
        width: 100%;
        text-align: center;
        align-self: stretch;
        box-sizing: border-box;
    }
}