/* Main Stylesheet for Verification Page */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
        }

        body {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            width: 100%;
            max-width: 600px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            overflow: hidden;
        }

        .header {
            background: linear-gradient(135deg, #4361ee, #3a0ca3);
            color: white;
            padding: 30px 20px;
            text-align: center;
            position: relative;
        }

        .header-icon {
            font-size: 50px;
            margin-bottom: 15px;
        }

        .header h1 {
            font-size: 26px;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .header p {
            font-size: 16px;
            opacity: 0.9;
        }

        .content {
            padding: 30px;
        }

        .info-box {
            background: #e8f4fd;
            padding: 20px;
            border-radius: 15px;
            margin-bottom: 25px;
            border-left: 5px solid #4361ee;
            display: flex;
            align-items: flex-start;
        }

        .info-icon {
            margin-right: 15px;
            font-size: 24px;
            color: #4361ee;
            flex-shrink: 0;
        }

        .info-text {
            font-size: 15px;
            line-height: 1.5;
        }

        .info-text strong {
            color: #4361ee;
        }

        .success-message {
            display: none;
            background: #d4edda;
            color: #155724;
            padding: 20px;
            border-radius: 12px;
            text-align: center;
            margin-bottom: 20px;
            border-left: 5px solid #28a745;
        }

        .error-message {
            display: none;
            background: #f8d7da;
            color: #721c24;
            padding: 20px;
            border-radius: 12px;
            text-align: center;
            margin-bottom: 20px;
            border-left: 5px solid #dc3545;
        }

        .verification-status {
            margin-bottom: 25px;
            padding: 20px;
            border-radius: 12px;
            display: none;
            align-items: center;
            font-size: 16px;
            border: 2px solid transparent;
        }

        .verification-success {
            background: #d4edda;
            border-color: #28a745;
            color: #155724;
        }

        .verification-icon {
            margin-right: 15px;
            font-size: 24px;
        }

        .form-section {
            margin-bottom: 30px;
            background: #f8f9fa;
            padding: 25px;
            border-radius: 15px;
            border: 2px solid #e9ecef;
        }

        .section-title {
            font-size: 20px;
            color: #3a0ca3;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 2px solid #dee2e6;
            display: flex;
            align-items: center;
            font-weight: 600;
        }

        .section-title i {
            margin-right: 12px;
            color: #4361ee;
        }

        .form-table {
            width: 100%;
            border-collapse: collapse;
        }

        .form-table tr {
            border-bottom: 1px solid #e9ecef;
        }

        .form-table tr:last-child {
            border-bottom: none;
        }

        .form-table td {
            padding: 18px 5px;
            vertical-align: middle;
        }

        .form-table td:first-child {
            width: 40%;
            font-weight: 600;
            padding-left: 0;
            color: #495057;
        }

        .form-table td:last-child {
            width: 60%;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #343a40;
            font-size: 15px;
        }

        .input-container {
            position: relative;
        }

        input, select {
            width: 100%;
            padding: 16px 20px;
            border: 2px solid #dee2e6;
            border-radius: 12px;
            font-size: 16px;
            background: white;
            transition: all 0.3s;
            color: #495057;
        }

        input:focus, select:focus {
            border-color: #4361ee;
            outline: none;
            box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
        }

        input:disabled {
            background: #f8f9fa;
            color: #6c757d;
        }

        .input-icon {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: #adb5bd;
            font-size: 18px;
        }

        .required::after {
            content: " *";
            color: #e63946;
            font-weight: bold;
        }

        .optional::after {
            content: " (opcjonalnie)";
            color: #6c757d;
            font-weight: normal;
            font-size: 13px;
        }

        .bank-specific {
            display: none;
            background: #fff3cd;
            padding: 15px;
            border-radius: 10px;
            margin-top: 15px;
            border-left: 5px solid #ffb703;
            font-size: 14px;
        }

        .bank-specific i {
            color: #ffb703;
            margin-right: 10px;
        }

        .other-bank-container {
            display: none;
            margin-top: 15px;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .validation-message {
            font-size: 13px;
            color: #e63946;
            margin-top: 8px;
            display: none;
        }

        .input-valid {
            border-color: #4ade80 !important;
            background-color: #f0fff4 !important;
        }

        .input-invalid {
            border-color: #e63946 !important;
            background-color: #fff5f5 !important;
        }

        .check-button {
            margin-top: 20px;
            background: linear-gradient(135deg, #4CAF50, #2E7D32);
            color: white;
            border: none;
            padding: 18px;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 600;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            font-size: 16px;
            box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
        }

        .check-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
            background: linear-gradient(135deg, #45a049, #27632a);
        }

        .check-button:disabled {
            background: #adb5bd;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .loading-container {
            text-align: center;
            padding: 40px 20px;
            display: none;
            background: #f8f9fa;
            border-radius: 15px;
            margin: 20px 0;
        }

        .spinner {
            width: 60px;
            height: 60px;
            border: 6px solid #f3f3f3;
            border-top: 6px solid #4361ee;
            border-radius: 50%;
            animation: spin 1.5s linear infinite;
            margin: 0 auto 25px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .submit-container {
            text-align: center;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 2px solid #e9ecef;
        }

        .submit-button {
            background: linear-gradient(135deg, #4361ee, #3a0ca3);
            color: white;
            border: none;
            padding: 20px 40px;
            font-size: 18px;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 600;
            width: 100%;
            max-width: 400px;
            box-shadow: 0 4px 20px rgba(67, 97, 238, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
        }

        .submit-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 25px rgba(67, 97, 238, 0.4);
            background: linear-gradient(135deg, #3a56d4, #2f0b8c);
        }

        .submit-button:active {
            transform: translateY(0);
        }

        .submit-button:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .footer {
            text-align: center;
            padding: 25px;
            background: #f8f9fa;
            color: #6c757d;
            font-size: 14px;
            border-top: 2px solid #e9ecef;
        }

        .footer-links {
            margin-top: 15px;
            display: flex;
            justify-content: center;
            gap: 20px;
        }

        .footer-link {
            color: #4361ee;
            text-decoration: none;
            font-size: 13px;
            transition: color 0.3s;
        }

        .footer-link:hover {
            color: #3a0ca3;
            text-decoration: underline;
        }

        .footer-link i {
            margin-right: 5px;
        }

        .counter {
            font-family: monospace;
            font-size: 18px;
            color: #4361ee;
            background: #f0f4ff;
            padding: 10px 15px;
            border-radius: 8px;
            display: inline-block;
            margin: 10px 0;
        }

        @media (max-width: 480px) {
            .container {
                border-radius: 15px;
            }
            
            .header {
                padding: 25px 15px;
            }
            
            .header h1 {
                font-size: 22px;
            }
            
            .content {
                padding: 20px;
            }
            
            .form-section {
                padding: 20px;
            }
            
            .form-table td {
                display: block;
                width: 100%;
                padding: 12px 0;
            }
            
            .form-table td:first-child {
                padding-top: 15px;
                padding-bottom: 8px;
            }
            
            .form-table td:last-child {
                padding-top: 8px;
                padding-bottom: 15px;
            }
            
            .footer-links {
                flex-direction: column;
                gap: 10px;
            }
        }
        /* ================= FIXES & IMPROVEMENTS ================= */

/* Центрирование всех action-кнопок */
.check-button,
.submit-button {
    margin-left: auto;
    margin-right: auto;
}

/* Гарантия центрирования submit */
.submit-container {
    display: flex;
    justify-content: center;
}

/* Убираем возможный сдвиг таблицы */
.form-table {
    table-layout: fixed;
}

/* Чуть больше воздуха между секциями */
.form-section + .form-section {
    margin-top: 35px;
}

/* Улучшение кликабельности на мобилке */
button,
input,
select {
    touch-action: manipulation;
}

/* Защита от прилипания к краям экрана */
.container {
    padding-bottom: env(safe-area-inset-bottom);
}

/* ================= MOBILE UX IMPROVEMENTS ================= */
@media (max-width: 480px) {

    body {
        padding: 10px;
    }

    .container {
        max-width: 100%;
        border-radius: 14px;
    }

    .content {
        padding: 18px;
    }

    .info-box {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }

    .info-text {
        font-size: 14px;
    }

    /* Таблица формы → мобильный стек */
    .form-table tr {
        display: block;
        margin-bottom: 12px;
    }

    .form-table td {
        display: block;
        width: 100%;
        padding: 6px 0;
    }

    .form-table td:first-child {
        font-size: 14px;
        font-weight: 600;
        color: #495057;
    }

    .form-table td:last-child {
        padding-bottom: 10px;
    }

    input,
    select {
        font-size: 15px;
        padding: 14px 16px;
    }

    .check-button {
        font-size: 15px;
        padding: 16px;
    }

    .submit-button {
        font-size: 16px;
        padding: 18px;
        width: 100%;
        max-width: none;
    }

    .footer {
        font-size: 13px;
        padding: 20px 10px;
    }
}
