/* ================================
   REMESAS SIMULATOR - MINIMAL DESIGN
   ================================ */

/* Reset and Base */
.remesas-simulator-container.minimal-design {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Header Section */
.minimal-header {
    text-align: center;
    padding: 40px 30px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.minimal-title {
    font-size: 32px;
    font-weight: 700;
    color: #212529;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.minimal-subtitle {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

/* Form Container */
.minimal-form-container {
    padding: 40px 30px;
}

/* Field Groups */
.minimal-field-group {
    margin-bottom: 32px;
}

.field-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
}

/* Country Selector */
.minimal-country-selector {
    position: relative;
}

.country-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}
.gross-amount-row {
    border-top: 1px dashed #e0e0e0;
    padding-top: 8px;
}

.net-amount-row {
    border-top: 2px solid #0073aa;
    padding-top: 8px;
    margin-top: 8px;
}
.country-display:hover {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.country-display.open {
    border-color: #007bff;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.country-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.country-flag {
    font-size: 24px;
}

.country-name {
    font-size: 16px;
    font-weight: 500;
    color: #212529;
}

.dropdown-arrow {
    color: #6c757d;
    transition: transform 0.3s ease;
}

.country-display.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Country Dropdown */
.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #007bff;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.country-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.country-option:hover {
    background-color: #f8f9fa;
}

.country-option:last-child {
    border-bottom: none;
}

.option-flag {
    font-size: 20px;
}

.option-name {
    flex: 1;
    font-size: 15px;
    font-weight: 400;
    color: #212529;
}

.selected-check {
    color: #007bff;
    font-weight: 600;
}

/* Currency Exchange Section */
.currency-exchange-section {
    display: grid;
    grid-template-columns: 1fr auto 1fr; 
    gap: 5px; 
    align-items: center;
}

.currency-field {
    display: flex;
    flex-direction: column;
}

.currency-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.amount-input-container {
    display: flex;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.amount-input-container:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.currency-prefix {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-right: 2px solid #e9ecef;
    min-width: 50px;
    justify-content: center;
}

.currency-code {
    font-size: 14px;
    font-weight: 700;
    color: #495057;
    letter-spacing: 0.5px;
}

.amount-input {
    flex: 1;
    padding: 8px;
    border: none;
    outline: none;
    font-weight: 600;
    color: #212529;
    background: transparent;
    text-align: center;
}

.amount-input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.helper-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 6px;
    line-height: 1.4;
}

/* Exchange Arrow */
.exchange-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    color: #007bff;
}

/* Exchange Details Panel */
.exchange-details-panel {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.detail-row:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 8px;
    padding-bottom: 16px;
}

.detail-label {
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
}

.trm-rate {
    color: #007bff !important;
}

.commission {
    color: #28a745 !important;
}

/* Buttons */
.minimal-continue-btn {
    width: 100%;
    padding: 16px 32px;
    background: #e9ecef;
    color: #6c757d;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s ease;
    margin-top: 24px;
}

.minimal-continue-btn:not(:disabled) {
    background: #007bff;
    color: white;
    cursor: pointer;
}

.minimal-continue-btn:not(:disabled):hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Step 2: Contact Form */
.transaction-summary-minimal {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.summary-row:last-of-type {
    margin-bottom: 16px;
}

.summary-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.summary-amount {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
}

.edit-link {
    background: none;
    border: none;
    color: #007bff;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-weight: 500;
}

.edit-link:hover {
    color: #0056b3;
}

/* Form Fields */
.minimal-contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.form-field input {
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    color: #212529;
    background: #fff;
    transition: all 0.3s ease;
}

.form-field input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-field input::placeholder {
    color: #adb5bd;
}

/* Terms Checkbox */
.terms-field {
    margin: 8px 0;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: #007bff;
    border-color: #007bff;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.terms-text {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

.terms-text a {
    color: #007bff;
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* Submit Button */
.minimal-submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: #e9ecef;
    color: #6c757d;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.minimal-submit-btn:not(:disabled) {
    background: #28a745;
    color: white;
    cursor: pointer;
}

.minimal-submit-btn:not(:disabled):hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Secondary Button */
.minimal-btn-secondary {
    padding: 12px 24px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.minimal-btn-secondary:hover {
    background: #5a6268;
}

/* Loading, Success, Error States */
.remesas-loading,
.remesas-success {
    padding: 60px 40px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e9ecef;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: white;
}

.success-content h3,
.loading-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #212529;
    margin: 0 0 12px 0;
}

.success-content p,
.loading-content p {
    font-size: 16px;
    color: #6c757d;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* Error Messages */
.remesas-error {
    margin: 20px;
    padding: 16px 20px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.error-icon {
    font-size: 18px;
}

.error-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.error-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #721c24;
    cursor: pointer;
    padding: 4px;
}

/* Step Transitions */
.remesas-step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.remesas-step.active {
    display: block !important;
    opacity: 1 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .remesas-simulator-container.minimal-design {
        margin: 10px;
        border-radius: 12px;
    }
    
    .minimal-header {
        padding: 30px 20px 20px;
    }
    
    .minimal-title {
        font-size: 28px;
    }
    
    .minimal-subtitle {
        font-size: 15px;
    }
    
    .minimal-form-container {
        padding: 30px 20px;
    }
    
    .amount-input {
        font-size: 20px;
        padding: 14px 16px;
    }
    
    .currency-prefix {
        padding: 0 16px;
        min-width: 70px;
    }
    
    .country-display,
    .form-field input,
    .minimal-continue-btn,
    .minimal-submit-btn {
        padding: 14px 16px;
    }
    
    .exchange-details-panel {
        padding: 16px;
    }
    
    .transaction-summary-minimal {
        padding: 16px;
    }
    
    .country-dropdown {
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .minimal-header {
        padding: 24px 16px 16px;
    }
    
    .minimal-title {
        font-size: 24px;
    }
    
    .minimal-form-container {
        padding: 24px 16px;
    }
    
    .amount-input {
        font-size: 18px;
    }
    
    .currency-field {
        margin-bottom: 20px;
    }
    
    .minimal-field-group {
        margin-bottom: 24px;
    }
}

/* Focus States for Accessibility */
.country-display:focus,
.amount-input:focus,
.form-field input:focus,
.minimal-continue-btn:focus,
.minimal-submit-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .minimal-header {
        background: #000;
        color: #fff;
    }
    
    .minimal-title {
        color: #fff;
    }
    
    .minimal-subtitle {
        color: #ccc;
    }
    
    .country-display,
    .amount-input-container,
    .form-field input {
        border-color: #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .remesas-simulator-container.minimal-design {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .minimal-continue-btn,
    .minimal-submit-btn,
    .edit-link {
        display: none;
    }
}