/* V62 Form System Styles */

:root {
    --v62-primary: #0b0c0c;
    --v62-secondary: #1d70b8;
    --v62-success: #00703c;
    --v62-error: #d4351c;
    --v62-border: #b1b4b6;
    --v62-bg-light: #f3f2f1;
    --v62-text: #0b0c0c;
    --v62-text-secondary: #505a5f;
}

/* Main Wrapper */
.v62-form-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--v62-text);
}

.v62-form-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--v62-primary);
}

.v62-form-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--v62-primary);
}

.v62-form-subtitle {
    font-size: 18px;
    color: var(--v62-text-secondary);
    margin: 0;
}

/* Progress Bar */
.v62-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
    padding: 0 20px;
}

.v62-progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--v62-border);
    z-index: 0;
}

.v62-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: all 0.3s;
}

.v62-progress-step .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--v62-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.v62-progress-step.active .step-number {
    background: var(--v62-secondary);
    border-color: var(--v62-secondary);
    color: white;
}

.v62-progress-step.completed .step-number {
    background: var(--v62-success);
    border-color: var(--v62-success);
    color: white;
}

.v62-progress-step .step-title {
    font-size: 12px;
    text-align: center;
    color: var(--v62-text-secondary);
    max-width: 100px;
}

.v62-progress-step.active .step-title {
    color: var(--v62-secondary);
    font-weight: 600;
}

/* Form Steps */
.v62-form {
    background: white;
    padding: 40px;
    border: 1px solid var(--v62-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.v62-form-step {
    display: none;
}

.v62-form-step.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.v62-form-step h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 30px;
    color: var(--v62-primary);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--v62-bg-light);
}

/* Form Groups */
.v62-form-group {
    margin-bottom: 25px;
}

.v62-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.v62-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--v62-text);
    font-size: 16px;
}

.v62-form-group input[type="text"],
.v62-form-group input[type="email"],
.v62-form-group input[type="tel"],
.v62-form-group input[type="number"],
.v62-form-group input[type="date"],
.v62-form-group select,
.v62-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--v62-border);
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.v62-form-group input:focus,
.v62-form-group select:focus,
.v62-form-group textarea:focus {
    outline: none;
    border-color: var(--v62-secondary);
    box-shadow: 0 0 0 3px rgba(29, 112, 184, 0.1);
}

.v62-form-group input.error,
.v62-form-group select.error,
.v62-form-group textarea.error {
    border-color: var(--v62-error);
}

.v62-field-error {
    display: none;
    color: var(--v62-error);
    font-size: 14px;
    margin-top: 5px;
    font-weight: 500;
}

.v62-help-text {
    font-size: 14px;
    color: var(--v62-text-secondary);
    margin-top: 5px;
    font-style: italic;
}

/* Radio and Checkbox Groups */
.v62-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.v62-radio,
.v62-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.v62-radio input[type="radio"],
.v62-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

/* Review Section */
.v62-review-section {
    background: var(--v62-bg-light);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 25px;
}

.v62-review-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px;
    color: var(--v62-primary);
}

.v62-review-content p {
    margin: 8px 0;
    line-height: 1.6;
}

.v62-review-content strong {
    color: var(--v62-text);
    font-weight: 600;
}

/* Buttons */
.v62-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
}

.v62-btn-primary {
    background: var(--v62-secondary);
    color: white;
}

.v62-btn-primary:hover {
    background: #003078;
}

.v62-btn-secondary {
    background: #f3f2f1;
    color: var(--v62-text);
    border: 2px solid var(--v62-border);
}

.v62-btn-secondary:hover {
    background: #e8e8e8;
}

.v62-btn-success {
    background: var(--v62-success);
    color: white;
    font-size: 18px;
    padding: 15px 40px;
}

.v62-btn-success:hover {
    background: #005a30;
}

.v62-form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--v62-bg-light);
}

.v62-form-navigation .v62-btn {
    min-width: 150px;
}

/* Modals */
.v62-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.v62-modal-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.v62-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: 700;
    color: var(--v62-text-secondary);
    cursor: pointer;
    line-height: 1;
}

.v62-modal-close:hover {
    color: var(--v62-text);
}

.v62-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
}

.v62-modal-icon.success {
    background: var(--v62-success);
    color: white;
}

.v62-modal-content h2 {
    text-align: center;
    margin: 0 0 20px;
    color: var(--v62-primary);
}

.v62-modal-content p {
    text-align: center;
    margin: 10px 0;
    color: var(--v62-text-secondary);
}

/* Payment Methods */
.v62-payment-modal-content {
    max-width: 600px;
}

.v62-payment-step h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--v62-primary);
}

.v62-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.v62-payment-btn {
    padding: 18px 20px;
    background: white;
    border: 2px solid var(--v62-border);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.v62-payment-btn:hover {
    border-color: var(--v62-secondary);
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.crypto-icon {
    font-size: 28px;
    font-weight: 700;
}

.crypto-name {
    font-size: 16px;
}

.payment-amount {
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--v62-bg-light);
    border-radius: 6px;
}

.v62-back-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--v62-border);
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 20px;
    font-size: 14px;
    transition: all 0.2s;
}

.v62-back-btn:hover {
    background: var(--v62-bg-light);
}

.payment-instructions {
    margin-top: 20px;
}

.payment-info-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.payment-info-box p {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: var(--v62-text);
}

.payment-amount-box {
    background: white;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--v62-secondary);
    border: 2px solid var(--v62-secondary);
}

.payment-address-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.payment-address-box input {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--v62-border);
    border-radius: 6px;
    font-family: monospace;
    font-size: 12px;
    background: white;
}

.copy-btn {
    padding: 12px 20px;
    background: var(--v62-secondary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #003078;
}

.copy-icon {
    margin-right: 5px;
}

.qr-code-container {
    margin-top: 15px;
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 6px;
}

.payment-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    font-size: 14px;
    color: #856404;
}

.transaction-input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--v62-border);
    border-radius: 6px;
    font-family: monospace;
    font-size: 13px;
    margin-top: 10px;
    box-sizing: border-box;
}

.transaction-input:focus {
    outline: none;
    border-color: var(--v62-secondary);
}

.help-text {
    font-size: 13px;
    color: var(--v62-text-secondary);
    margin-top: 8px;
    font-style: italic;
}

.payment-pending-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    padding: 12px;
    border-radius: 6px;
    margin: 15px 0;
    color: #0c5460;
    font-size: 14px;
}

/* Loading Spinner */
.v62-loading {
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.v62-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--v62-bg-light);
    border-top-color: var(--v62-secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.v62-loading p {
    margin-top: 20px;
    font-size: 16px;
    color: var(--v62-text);
    font-weight: 600;
}

/* Notifications */
.v62-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10002;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 500;
    max-width: 400px;
    display: none;
}

.v62-notification-success {
    background: var(--v62-success);
    color: white;
}

.v62-notification-error {
    background: var(--v62-error);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .v62-form-wrapper {
        padding: 0 15px;
    }

    .v62-form {
        padding: 25px 20px;
    }

    .v62-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .v62-progress-bar {
        padding: 0 10px;
    }

    .v62-progress-step .step-title {
        font-size: 10px;
        max-width: 70px;
    }

    .v62-progress-step .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .v62-form-header h1 {
        font-size: 24px;
    }

    .v62-form-subtitle {
        font-size: 16px;
    }

    .v62-form-navigation {
        flex-direction: column;
    }

    .v62-modal-content {
        padding: 30px 20px;
    }

    .v62-notification {
        left: 15px;
        right: 15px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .v62-form-header h1 {
        font-size: 20px;
    }

    .v62-form-step h2 {
        font-size: 20px;
    }

    .v62-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .v62-progress-step .step-title {
        display: none;
    }
}