/* ============================================================
   RB Calculator — VAM Customs Calculator Styles
   ============================================================ */

.rbc-vam-wrapper {
    width: 100%;
    background: #ffffff;
    font-family: 'TT Norms', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding: 0;
    margin: 0;
}

.rbc-vam-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.rbc-vam-header {
    text-align: center;
    margin-bottom: 40px;
}

.rbc-vam-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.rbc-vam-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.rbc-vam-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.rbc-vam-form {
    flex: 1;
    min-width: 300px;
}

.rbc-vam-results {
    flex: 1;
    min-width: 300px;
}

.rbc-vam-form-group {
    margin-bottom: 20px;
}

.rbc-vam-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rbc-vam-input,
.rbc-vam-select {
    height: 50px;
    padding: 0 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    color: #1a1a1a;
    background: #ffffff;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
    font-family: inherit;
    appearance: none;
}

.rbc-vam-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.rbc-vam-input:focus,
.rbc-vam-select:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.rbc-vam-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.rbc-vam-table td {
    padding: 14px 10px;
    border-bottom: 1px solid #eee;
}

.rbc-vam-table td:first-child {
    color: #555;
    font-weight: 500;
}

.rbc-vam-table td:last-child {
    text-align: right;
    font-weight: 700;
    color: #1a1a1a;
}

.rbc-vam-total {
    background: #f8f9fa;
    font-weight: 700;
}

.rbc-vam-total td {
    font-size: 1.1rem;
    border-bottom: none;
}

.rbc-vam-rates {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.rbc-vam-small {
    font-size: 12px;
    color: #888;
    margin: 5px 0;
    line-height: 1.5;
}

/* Адаптив */
@media (max-width: 768px) {
    .rbc-vam-grid {
        flex-direction: column;
        gap: 20px;
    }
    .rbc-vam-form,
    .rbc-vam-results {
        width: 100%;
        min-width: auto;
    }
    .rbc-vam-input,
    .rbc-vam-select {
        font-size: 16px; /* Чтобы избежать зума на iOS */
    }
}
