/**
 * Frontend Styles - Responsive
 */
.mloun-vc-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.mloun-vc-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

.mloun-vc-input {
    flex: 1 1 auto;
    min-width: 200px;
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.4;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.mloun-vc-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

.mloun-vc-input::placeholder {
    color: #999;
    font-size: 14px;
}

.mloun-vc-button {
    flex: 0 0 auto;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    background: #2271b1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

.mloun-vc-button:hover {
    background: #1a5a8e;
    transform: translateY(-1px);
}

.mloun-vc-button:active {
    transform: translateY(0);
}

.mloun-vc-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.mloun-vc-result {
    margin-top: 15px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
    display: none;
    word-wrap: break-word;
}

.mloun-vc-result.success {
    display: block;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.mloun-vc-result.error {
    display: block;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.mloun-vc-result.loading {
    display: block;
    background: rgba(34, 113, 177, 0.1);
    border: 1px solid rgba(34, 113, 177, 0.3);
    color: #2271b1;
}

/* Spinner */
.mloun-vc-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mloun-vc-spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes mloun-vc-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .mloun-vc-form {
        flex-direction: column;
    }

    .mloun-vc-input,
    .mloun-vc-button {
        width: 100% !important;
        min-width: 100%;
    }

    .mloun-vc-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .mloun-vc-button {
        padding: 14px 24px;
    }

    .mloun-vc-result {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .mloun-vc-input {
        padding: 10px 12px;
        font-size: 15px;
    }

    .mloun-vc-button {
        padding: 12px 20px;
        font-size: 15px;
    }

    .mloun-vc-result {
        padding: 10px 12px;
        font-size: 13px;
    }
}
