.mercato-contact-form-widget {
    width: 100%;
    margin-bottom: 2rem;
}

.mercato-contact-form-widget.is-rtl {
    direction: rtl;
}

.mercato-contact-form-widget.is-ltr {
    direction: ltr;
}

.mcf-container {
    display: flex;
    flex-direction: column-reverse;
    /* Form first on mobile */
    gap: 1.5rem;
    /* gap-6 */
    justify-content: center;
    padding: 2.5rem 1rem;
}

@media (min-width: 1280px) {

    /* xl */
    .mcf-container {
        flex-direction: row;
        padding-top: 5rem;
        gap: 2.5rem;
        /* gap-10 */
        align-items: stretch;
        /* Sync height of both columns */
    }

    .is-ltr .mcf-container {
        flex-direction: row-reverse;
        /* Map on right, Form on left */
    }
}

/* ==================
   Form Section
   ================== */
.mcf-form-column {
    width: 100%;
}

@media (min-width: 1280px) {
    .mcf-form-column {
        width: 33.333%;
    }
}

.mcf-form-container {
    background-color: #E8E8EA;
    padding: 2rem;
    border-radius: 0.75rem;
    /* rounded-xl */
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 1024px) {
    .mcf-form-container {
        padding: 3rem;
    }
}

.mcf-title {
    font-size: 2.25rem;
    /* text-4xl */
    font-weight: 700;
    color: #000;
    margin-bottom: 1rem;
    text-align: center;
}

@media (min-width: 1024px) {
    .mcf-title {
        font-size: 3rem;
        /* text-5xl */
    }
}

.mcf-subtitle {
    color: #4b5563;
    /* gray-600 */
    text-align: center;
    margin-bottom: 2rem;
}

/* Form Fields */
.mcf-form {
    width: 100%;
    max-width: 36rem;
    /* max-w-xl */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: #000;
}

.mcf-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .mcf-row {
        flex-direction: row;
    }
}

.mcf-field-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mcf-field-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    /* text-sm */
    color: #000;
}

.is-rtl .mcf-field-group label {
    text-align: right;
}

.is-ltr .mcf-field-group label {
    text-align: left;
}

.mcf-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #9ca3af;
    /* gray-400 */
    background-color: transparent;
    outline: none;
    transition: border-color 0.2s;
}

.is-rtl .mcf-input {
    text-align: right;
}

.is-ltr .mcf-input {
    text-align: left;
}

.mcf-input::placeholder {
    color: #9ca3af;
    /* gray-400 */
}

/* Textarea specific */
.mcf-textarea {
    resize: none;
}

/* Button */
.mcf-submit-btn {
    width: 100%;
    background-color: #000;
    color: #fff;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    /* text-xl */
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}

.mcf-submit-btn:hover {
    background-color: #1f2937;
    /* gray-800 */
}

.mcf-submit-btn:disabled {
    background-color: #6b7280;
    /* gray-500 */
    cursor: not-allowed;
}

/* Messages */
.mcf-message {
    text-align: center;
    margin-top: 0.5rem;
}

.mcf-success {
    color: #16a34a;
    /* green-600 */
}

.mcf-error {
    color: #dc2626;
    /* red-600 */
}

/* Divider */
.mcf-divider-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.mcf-divider-line {
    flex: 1;
    height: 1px;
    background-color: #9ca3af;
}

.mcf-divider-row p {
    color: #4b5563;
    /* gray-600 */
    font-size: 0.875rem;
    margin: 0;
}

/* Socials */
.mcf-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* ==================
   Map Section
   ================== */
.mcf-map-column {
    width: 100%;
    min-height: 400px;
}

@media (min-width: 1280px) {

    /* xl */
    .mcf-map-column {
        width: 66.666%;
        /* 2/3 */
    }
}

.mcf-map-wrapper,
.mcf-map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}