/* Base layout */
.mgimo-int-form-wrap {
    max-width: 520px;
    margin: 40px auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Card */
.mgimo-int-form {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    padding: 24px 22px;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.08),
        0 0 0 0.5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-sizing: border-box;
}

/* Title */
.mgimo-int-form__title {
    margin: 0 0 18px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #111827;
}

/* Rows */
.mgimo-int-form__row {
    margin-bottom: 14px;
}

/* Labels */
.mgimo-int-form__row label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    letter-spacing: -0.01em;
}

/* Inputs & selects */
.mgimo-int-form__row input,
.mgimo-int-form__row select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 11px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    background-color: rgba(249, 250, 251, 0.9);
    font-size: 14px;
    line-height: 1.4;
    color: #111827;
    box-sizing: border-box;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease,
        transform 0.08s ease;
    -webkit-appearance: none;
    appearance: none;
}

/* Hover */
.mgimo-int-form__row input:hover,
.mgimo-int-form__row select:hover {
    border-color: #94a3b8;
    background-color: #f9fafb;
}

/* Focus */
.mgimo-int-form__row input:focus,
.mgimo-int-form__row select:focus {
    outline: none;
    border-color: #0071e3;
    box-shadow:
        0 0 0 1px rgba(0, 113, 227, 0.7),
        0 0 0 4px rgba(0, 113, 227, 0.18);
    background-color: #ffffff;
}

/* Placeholder */
.mgimo-int-form__row input::placeholder {
    color: #9ca3af;
}

/* Submit button */
.mgimo-int-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #0071e3, #0a84ff);
    color: #ffffff;
    box-shadow:
        0 10px 20px rgba(15, 118, 249, 0.25),
        0 0 0 0.5px rgba(0, 0, 0, 0.03);
    transition:
        transform 0.08s ease-out,
        box-shadow 0.12s ease-out,
        filter 0.12s ease-out,
        background 0.12s ease-out;
}

/* Button hover/active */
.mgimo-int-form__submit:hover {
    filter: brightness(1.03);
    box-shadow:
        0 14px 28px rgba(37, 99, 235, 0.32),
        0 0 0 0.5px rgba(0, 0, 0, 0.04);
    transform: translateY(-0.5px);
}

.mgimo-int-form__submit:active {
    transform: translateY(0.5px) scale(0.99);
    box-shadow:
        0 8px 16px rgba(15, 118, 249, 0.24),
        0 0 0 0.5px rgba(0, 0, 0, 0.04);
}

/* Loading state */
.mgimo-int-form.is-loading .mgimo-int-form__submit {
    opacity: 0.85;
    cursor: progress;
}

/* Message */
.mgimo-int-form__message {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.mgimo-int-form__message--success {
    color: #15803d;
}

.mgimo-int-form__message--error {
    color: #b91c1c;
}

/* intl-tel-input integration */
.mgimo-int-form__row .iti {
    width: 100%;
}

.mgimo-int-form__row .iti__flag-container {
    z-index: 2;
}

/* Make phone input align nicely with the flags */
.mgimo-int-form__row .iti input[type="tel"] {
    padding-left: 12px;
}

/* Small screens */
@media (max-width: 480px) {
    .mgimo-int-form-wrap {
        margin: 24px auto;
        padding: 0 12px;
    }

    .mgimo-int-form {
        padding: 18px 16px;
        border-radius: 16px;
    }

    .mgimo-int-form__title {
        font-size: 18px;
    }

    .mgimo-int-form__row input,
    .mgimo-int-form__row select {
        font-size: 13px;
    }

    .mgimo-int-form__submit {
        width: 100%;
        justify-content: center;
    }
}
