/**
 * Vietnam Visa Form - Frontend Styles
 */

.vvf-form-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.vvf-iframe {
    display: block;
    width: 100%;
    min-height: 600px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background: #f9fafb;
}

/* Loading state */
.vvf-form-wrapper.is-loading .vvf-iframe {
    opacity: 0.5;
}

.vvf-form-wrapper.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: vvf-spin 0.8s linear infinite;
}

@keyframes vvf-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Centered variant */
.vvf-form-wrapper.vvf-centered {
    max-width: 600px;
}

/* Full width variant */
.vvf-form-wrapper.vvf-full-width {
    max-width: none;
    border-radius: 0;
}

.vvf-form-wrapper.vvf-full-width .vvf-iframe {
    border-radius: 0;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .vvf-iframe {
        background: #1f2937;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .vvf-iframe {
        border-radius: 8px;
        min-height: 700px;
    }
}

@media (max-width: 480px) {
    .vvf-iframe {
        border-radius: 0;
        min-height: 800px;
    }

    .vvf-form-wrapper {
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }
}
