/**
 * Tagus Value Public CSS
 * Version: 1.0.0
 * Description: Styles for public-facing functionality
 */

/* ==========================================================================
   Base Styles
   ========================================================================== */

.tagus-value-form-container,
.tagus-value-payment-page,
.tagus-value-result-page,
.tagus-value-about-page,
.tagus-value-faq-page,
.tagus-value-contact-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #2C3E50;
    line-height: 1.6;
}

.tagus-value-form-container *,
.tagus-value-payment-page *,
.tagus-value-result-page * {
    box-sizing: border-box;
}

/* ==========================================================================
   Form Container
   ========================================================================== */

.tagus-value-form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tv-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.tv-form-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1ABC9C;
    margin-bottom: 10px;
}

.tv-form-header p {
    font-size: 18px;
    color: #7F8C8D;
    margin: 0;
}

/* ==========================================================================
   Progress Bar
   ========================================================================== */

.tv-progress-container {
    margin-bottom: 40px;
    padding: 0 20px;
}

.tv-progress-track {
    height: 8px;
    background: #ECF0F1;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.tv-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1ABC9C 0%, #16A085 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.tv-progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 20px;
    background: rgba(255, 255, 255, 0.3);
    animation: progress-shine 1.5s ease-in-out infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-20px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(20px); opacity: 0; }
}

/* ==========================================================================
   Step Indicators
   ========================================================================== */

.tv-step-indicators {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 0 10px;
    position: relative;
}

.tv-step-indicators::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #ECF0F1;
    z-index: 0;
}

.tv-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 1;
    background: white;
    padding: 0 5px;
    transition: all 0.3s ease;
}

.tv-step-indicator .step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ECF0F1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tv-step-indicator .step-icon i {
    font-size: 20px;
    color: #95A5A6;
    transition: all 0.3s ease;
}

.tv-step-indicator .step-name {
    font-size: 14px;
    color: #95A5A6;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

/* Active Step */
.tv-step-indicator.active .step-icon {
    background: #1ABC9C;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(26, 188, 156, 0.4);
}

.tv-step-indicator.active .step-icon i {
    color: white;
}

.tv-step-indicator.active .step-name {
    color: #1ABC9C;
    font-weight: 600;
}

/* Completed Step */
.tv-step-indicator.completed .step-icon {
    background: #2ECC71;
}

.tv-step-indicator.completed .step-icon i {
    color: white;
}

.tv-step-indicator.completed .step-name {
    color: #2C3E50;
}

/* Future Step */
.tv-step-indicator.future {
    opacity: 0.6;
}

.tv-step-indicator.future:hover {
    opacity: 0.8;
}

/* ==========================================================================
   Form Steps
   ========================================================================== */

.tv-objetivo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 25px; /* Space between cards */
    margin-bottom: 30px;
    padding: 10px;
}

.tv-objetivo-card {
    background-color: #ffffff; /* White background */
    border: 2px solid #e0e6ed; /* Light border */
    border-radius: 12px; /* Rounded corners */
    padding: 30px 25px; /* Padding inside card */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth transition */
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Subtle shadow */
}

.tv-objetivo-card:hover {
    transform: translateY(-8px); /* Lift effect on hover */
    box-shadow: 0 12px 20px rgba(0,0,0,0.15); /* Enhanced shadow on hover */
    border-color: #1abc9c; /* Accent color border on hover */
}

.tv-objetivo-card.selected {
    border-color: #1abc9c; /* Accent color border when selected */
    background-color: #e6f7f4; /* Light accent background for selected */
    box-shadow: 0 6px 15px rgba(26, 188, 156, 0.3); /* Softer shadow for selected */
    transform: translateY(-2px); /* Slight lift for selected */
}

/* Visual checkmark for selected card */
.tv-objetivo-card.selected::after {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: 'Font Awesome 5 Free', 'Font Awesome 5 Pro'; /* Ensure correct font family */
    font-weight: 900; /* Required for Solid icons */
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 24px;
    color: #1abc9c; /* Accent color for checkmark */
    opacity: 0;
    transform: scale(0.5);
    animation: checkmark-appear 0.4s 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes checkmark-appear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tv-objetivo-card i { /* Icon styling */
    color: #1abc9c; /* Accent color for icon */
    margin-bottom: 20px; /* Space below icon */
    font-size: 3em; /* Larger icon */
    transition: transform 0.3s ease;
}

.tv-objetivo-card:hover i {
    transform: scale(1.1); /* Slight icon zoom on hover */
}

.tv-objetivo-card h4 { /* Card title styling */
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50; /* Dark text color for title */
    margin-bottom: 12px; /* Space below title */
}

.tv-objetivo-card p { /* Card description styling */
    font-size: 15px;
    color: #5d6d7e; /* Lighter text color for description */
    line-height: 1.6;
    min-height: 60px; /* Ensure cards maintain similar height */
}

/* Hide radio button */
.tv-objetivo-card input[type="radio"].d-none {
    display: none;
}


.tv-form {
    background: white;
}

.tv-form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tv-form-step.active {
    display: block;
}

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

.tv-form-step h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ECF0F1;
}

.tv-form-step h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2C3E50;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 8px;
    font-size: 16px;
}

.form-group label .required {
    color: #E74C3C;
    margin-left: 2px;
}

.form-control,
.tv-form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #E0E6ED;
    border-radius: 8px;
    background: #FAFBFC;
    transition: all 0.3s ease;
    color: #2C3E50;
}

.form-control:focus,
.tv-form-input:focus {
    outline: none;
    border-color: #1ABC9C;
    background: white;
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.1);
}

.form-control:hover,
.tv-form-input:hover {
    border-color: #BDC3C7;
}

/* Select styling */
select.form-control,
select.tv-form-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' 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 12px center;
    background-size: 20px;
    padding-right: 40px;
}

/* Textarea */
textarea.form-control,
textarea.tv-form-input {
    resize: vertical;
    min-height: 100px;
}

/* Number inputs */
input[type="number"].form-control,
input[type="number"].tv-form-input {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Checkbox and Radio */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    flex-shrink: 0;
}

.form-check-label {
    cursor: pointer;
    font-weight: 400;
    margin-bottom: 0;
}

/* Form sections */
.form-section {
    background: #F8F9FA;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid #E9ECEF;
}

.form-section legend {
    font-weight: 600;
    color: #2C3E50;
    font-size: 18px;
    margin-bottom: 16px;
    padding: 0;
}

/* Form row */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -8px;
    margin-right: -8px;
}

.form-row .form-group {
    padding-left: 8px;
    padding-right: 8px;
}

.col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }

/* Help text */
.form-text {
    font-size: 14px;
    color: #7F8C8D;
    margin-top: 4px;
}

/* Error states */
.form-group.has-error .form-control,
.form-group.has-error .tv-form-input {
    border-color: #E74C3C;
}

.form-group.has-error label {
    color: #E74C3C;
}

/* ==========================================================================
   Plan Selection
   ========================================================================== */

.tv-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.tv-plan-card {
    background: white;
    border: 2px solid #E0E6ED;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tv-plan-card:hover {
    border-color: #1ABC9C;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.tv-plan-card.selected {
    border-color: #1ABC9C;
    background: #F0FDF9;
    box-shadow: 0 4px 20px rgba(26, 188, 156, 0.2);
}

.tv-plan-card.selected::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #1ABC9C, #16A085);
    border-radius: 12px;
    z-index: -1;
}

.tv-plan-card.popular {
    border-color: #3498DB;
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: #E74C3C;
    color: white;
    padding: 4px 40px;
    font-size: 12px;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.plan-name {
    font-size: 22px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 16px;
}

.plan-price {
    margin-bottom: 8px;
}

.plan-price .currency {
    font-size: 24px;
    color: #7F8C8D;
    vertical-align: top;
}

.plan-price .amount {
    font-size: 48px;
    font-weight: 700;
    color: #1ABC9C;
}

.plan-subtitle {
    font-size: 14px;
    color: #7F8C8D;
    margin-bottom: 24px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    text-align: left;
}

.plan-features li {
    padding: 8px 0;
    color: #5D6D7E;
    display: flex;
    align-items: center;
}

.plan-features li i {
    color: #2ECC71;
    margin-right: 10px;
    font-size: 16px;
}

.plan-select-btn {
    width: 100%;
    padding: 12px 24px;
    background: #1ABC9C;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-select-btn:hover {
    background: #16A085;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 188, 156, 0.3);
}

.tv-plan-card.selected .plan-select-btn {
    background: #2C3E50;
}

/* Plan info */
.tv-plan-info {
    background: #F8F9FA;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

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

.info-item i {
    font-size: 24px;
    color: #1ABC9C;
}

.info-item p {
    margin: 0;
    font-size: 14px;
    color: #5D6D7E;
}

.info-divider {
    width: 1px;
    height: 40px;
    background: #DDD;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.tv-form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #ECF0F1;
}

.btn {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #1ABC9C;
    color: white;
}

.btn-primary:hover {
    background: #16A085;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 188, 156, 0.3);
}

.btn-secondary {
    background: #95A5A6;
    color: white;
}

.btn-secondary:hover {
    background: #7F8C8D;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ==========================================================================
   Messages and Alerts
   ========================================================================== */

.tv-message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideDown 0.3s ease;
}

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

.tv-message p {
    margin: 0;
    flex: 1;
}

.tv-message-info {
    background: #D4EDFC;
    color: #2980B9;
    border-left: 4px solid #3498DB;
}

.tv-message-success {
    background: #D5F4E6;
    color: #27AE60;
    border-left: 4px solid #2ECC71;
}

.tv-message-error {
    background: #FADBD8;
    color: #C0392B;
    border-left: 4px solid #E74C3C;
}

.tv-message-warning {
    background: #FCF3CF;
    color: #D68910;
    border-left: 4px solid #F39C12;
}

.tv-message-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    padding: 0;
    margin-left: 12px;
}

.tv-message-close:hover {
    opacity: 1;
}

/* Fixed messages */
.tv-message-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(420px);
    transition: transform 0.3s ease;
}

.tv-message-fixed.show {
    transform: translateX(0);
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.tv-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.tv-loading-spinner {
    text-align: center;
}

.tv-loading-spinner .spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #ECF0F1;
    border-top-color: #1ABC9C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.tv-loading-spinner p {
    font-size: 18px;
    color: #7F8C8D;
    margin: 0;
}

/* ==========================================================================
   Payment Page
   ========================================================================== */

.tagus-value-payment-page {
    background: #F5F7FA;
    min-height: 100vh;
    padding: 40px 0;
}

.tv-payment-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Payment Progress */
.tv-payment-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.tv-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tv-progress-step .step-icon {
    width: 48px;
    height: 48px;
    background: #E0E6ED;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.tv-progress-step.completed .step-icon {
    background: #2ECC71;
    color: white;
}

.tv-progress-step.active .step-icon {
    background: #1ABC9C;
    color: white;
}

.tv-progress-step span {
    font-size: 14px;
    color: #7F8C8D;
    font-weight: 500;
}

.tv-progress-line {
    width: 100px;
    height: 2px;
    background: #E0E6ED;
    margin: 0 20px;
    margin-bottom: 32px;
}

.tv-progress-line.completed {
    background: #2ECC71;
}

/* Payment Content */
.tv-payment-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

.tv-payment-main {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tv-payment-main h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 8px;
}

.tv-payment-subtitle {
    font-size: 16px;
    color: #7F8C8D;
    margin-bottom: 30px;
}

.tv-payment-section {
    margin-bottom: 30px;
}

.tv-payment-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 20px;
}

/* Payment Methods */
.tv-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.tv-payment-method {
    display: block;
    padding: 20px;
    border: 2px solid #E0E6ED;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tv-payment-method:hover {
    border-color: #BDC3C7;
}

.tv-payment-method.active {
    border-color: #1ABC9C;
    background: #F0FDF9;
}

.tv-payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.method-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.method-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.method-header i {
    font-size: 24px;
    color: #2C3E50;
}

.method-header span {
    font-weight: 600;
    color: #2C3E50;
}

.method-icons {
    display: flex;
    gap: 8px;
}

.method-icons i {
    font-size: 28px;
    color: #95A5A6;
}

.method-description {
    font-size: 14px;
    color: #7F8C8D;
}

/* Card Element */
.tv-card-element {
    padding: 16px;
    border: 2px solid #E0E6ED;
    border-radius: 8px;
    background: #FAFBFC;
    margin-bottom: 12px;
}

.tv-payment-error {
    color: #E74C3C;
    font-size: 14px;
    margin-top: 8px;
}

/* Info Box */
.tv-info-box {
    background: #D4EDFC;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tv-info-box i {
    font-size: 20px;
    color: #3498DB;
}

.tv-info-box p {
    margin: 0;
    color: #2980B9;
    font-size: 14px;
}

/* Payment Actions */
.tv-payment-actions {
    text-align: center;
    margin-top: 30px;
}

.tv-payment-actions .btn {
    min-width: 250px;
    padding: 16px 32px;
    font-size: 18px;
}

.tv-payment-secure {
    margin-top: 16px;
    font-size: 14px;
    color: #7F8C8D;
}

.tv-payment-secure i {
    margin-right: 6px;
    color: #2ECC71;
}

/* Order Summary Sidebar */
.tv-payment-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.tv-order-summary {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.tv-order-summary h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 20px;
}

.order-item {
    padding-bottom: 20px;
    border-bottom: 1px solid #ECF0F1;
    margin-bottom: 20px;
}

.item-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2C3E50;
    margin: 0 0 4px 0;
}

.item-ref {
    font-size: 14px;
    color: #7F8C8D;
    margin: 0;
}

.item-details {
    margin: 16px 0;
}

.item-details p {
    margin: 4px 0;
    font-size: 14px;
    color: #5D6D7E;
}

.item-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.item-features li {
    padding: 6px 0;
    font-size: 14px;
    color: #5D6D7E;
    display: flex;
    align-items: center;
}

.item-features li i {
    color: #2ECC71;
    margin-right: 8px;
    font-size: 12px;
}

.order-total {
    padding-top: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #5D6D7E;
}

.total-final {
    font-size: 18px;
    font-weight: 600;
    color: #2C3E50;
    border-top: 2px solid #ECF0F1;
    margin-top: 8px;
    padding-top: 16px;
}

.order-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ECF0F1;
}

.order-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #5D6D7E;
    display: flex;
    align-items: center;
}

.order-info p i {
    margin-right: 8px;
    color: #1ABC9C;
}

/* Trust Badges */
.tv-trust-badges {
    text-align: center;
    margin-bottom: 20px;
}

.tv-trust-badges img {
    height: 40px;
    margin: 0 10px;
    opacity: 0.7;
}

/* Need Help */
.tv-need-help {
    background: #F8F9FA;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.tv-need-help h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 8px;
}

.tv-need-help p {
    margin: 4px 0;
    font-size: 14px;
    color: #5D6D7E;
}

/* ==========================================================================
   Modals
   ========================================================================== */

.tv-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
}

.tv-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tv-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.tv-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.tv-processing {
    text-align: center;
}

.tv-processing h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2C3E50;
    margin: 20px 0 10px;
}

.tv-processing p {
    color: #7F8C8D;
    margin: 0;
}

/* Payment Instructions */
.tv-payment-instructions h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 30px;
}

.mb-reference {
    background: #F8F9FA;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

.mb-logo {
    text-align: center;
    margin-bottom: 20px;
}

.mb-logo img {
    height: 40px;
}

.mb-data {
    background: white;
    border-radius: 8px;
    padding: 20px;
}

.mb-field {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #ECF0F1;
}

.mb-field:last-child {
    border-bottom: none;
}

.mb-field label {
    color: #7F8C8D;
    font-weight: 500;
}

.mb-field strong {
    color: #2C3E50;
    font-size: 18px;
}

.transfer-data {
    background: #F8F9FA;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

.transfer-field {
    padding: 12px 0;
    border-bottom: 1px solid #E0E6ED;
}

.transfer-field:last-child {
    border-bottom: none;
}

.transfer-field label {
    display: block;
    color: #7F8C8D;
    font-size: 14px;
    margin-bottom: 4px;
}

.transfer-field strong {
    color: #2C3E50;
    font-size: 16px;
}

.important {
    background: #FCF3CF;
    color: #D68910;
    padding: 12px;
    border-radius: 6px;
    margin: 16px 0;
    font-weight: 600;
}

/* ==========================================================================
   Result Page
   ========================================================================== */

.tagus-value-result-page {
    background: #F5F7FA;
    min-height: 100vh;
    padding: 40px 0;
}

.tv-result-header {
    background: linear-gradient(135deg, #1ABC9C 0%, #16A085 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.tv-result-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.tv-result-header p {
    font-size: 20px;
    opacity: 0.9;
}

.tv-result-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.tv-report-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.tv-report-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ECF0F1;
}

/* Value Display */
.tv-value-display {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #F0FDF9 0%, #E6FAF5 100%);
    border-radius: 12px;
    margin-bottom: 30px;
}

.tv-value-label {
    font-size: 18px;
    color: #7F8C8D;
    margin-bottom: 10px;
}

.tv-value-amount {
    font-size: 48px;
    font-weight: 700;
    color: #1ABC9C;
    margin-bottom: 10px;
}

.tv-value-note {
    font-size: 14px;
    color: #95A5A6;
}

/* Property Summary */
.tv-property-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.tv-property-item {
    padding: 16px;
    background: #F8F9FA;
    border-radius: 8px;
}

.tv-property-item label {
    display: block;
    font-size: 14px;
    color: #7F8C8D;
    margin-bottom: 4px;
}

.tv-property-item span {
    font-size: 16px;
    font-weight: 600;
    color: #2C3E50;
}

/* Report Actions Sidebar */
.tv-report-actions {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.tv-action-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.tv-action-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 16px;
}

.tv-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tv-action-buttons .btn {
    width: 100%;
    justify-content: center;
}

/* Share buttons */
.tv-share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.tv-share-button {
    padding: 10px;
    border: 1px solid #E0E6ED;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tv-share-button:hover {
    background: #F8F9FA;
    border-color: #BDC3C7;
}

.tv-share-button i {
    font-size: 20px;
}

/* ==========================================================================
   About, FAQ, Contact Pages
   ========================================================================== */

.tagus-value-about-page,
.tagus-value-faq-page,
.tagus-value-contact-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tagus-value-about-page h1,
.tagus-value-faq-page h1,
.tagus-value-contact-page h1 {
    font-size: 36px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 20px;
    text-align: center;
}

.lead {
    font-size: 20px;
    color: #7F8C8D;
    text-align: center;
    margin-bottom: 40px;
}

/* About Page */
.tv-about-sections {
    margin-top: 40px;
}

.tv-about-section {
    margin-bottom: 40px;
}

.tv-about-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 20px;
}

.tv-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.tv-feature {
    text-align: center;
    padding: 30px;
    background: #F8F9FA;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tv-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.tv-feature i {
    font-size: 48px;
    color: #1ABC9C;
    margin-bottom: 20px;
}

.tv-feature h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 12px;
}

.tv-feature p {
    color: #7F8C8D;
    margin: 0;
}

/* FAQ Page */
.tv-faq-search {
    max-width: 600px;
    margin: 0 auto 30px;
}

.tv-faq-search input {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    border: 2px solid #E0E6ED;
    border-radius: 30px;
    background: #F8F9FA;
}

.tv-faq-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tv-faq-category {
    padding: 10px 20px;
    background: #F8F9FA;
    border: 2px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #7F8C8D;
}

.tv-faq-category:hover {
    background: #E8ECEF;
}

.tv-faq-category.active {
    background: #1ABC9C;
    color: white;
    border-color: #1ABC9C;
}

.tv-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.tv-faq-item {
    margin-bottom: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tv-faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: #2C3E50;
    transition: all 0.3s ease;
}

.tv-faq-question:hover {
    background: #F8F9FA;
}

.tv-faq-icon {
    font-size: 20px;
    color: #1ABC9C;
    transition: transform 0.3s ease;
}

.tv-faq-icon.rotated {
    transform: rotate(45deg);
}

.tv-faq-answer {
    display: none;
    padding: 0 24px 20px;
    color: #5D6D7E;
}

.tv-faq-answer p {
    margin: 0;
    line-height: 1.6;
}

/* AI Assistant */
.tv-ai-assistant {
    max-width: 600px;
    margin: 60px auto 0;
    padding: 30px;
    background: #F8F9FA;
    border-radius: 12px;
    text-align: center;
}

.tv-ai-assistant h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 12px;
}

.tv-ai-form {
    margin-top: 20px;
}

.input-group {
    display: flex;
    gap: 8px;
}

.tv-ai-response {
    margin-top: 20px;
    text-align: left;
}

.ai-answer {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #1ABC9C;
}

.ai-answer i {
    color: #1ABC9C;
    margin-right: 8px;
}

/* Contact Page */
.tv-contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.tv-contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tv-contact-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.tv-contact-card i {
    font-size: 36px;
    color: #1ABC9C;
    margin-bottom: 16px;
}

.tv-contact-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 12px;
}

.tv-contact-card p {
    margin: 0;
    color: #5D6D7E;
}

.tv-contact-card a {
    color: #1ABC9C;
    text-decoration: none;
}

.tv-contact-card a:hover {
    text-decoration: underline;
}

.tv-contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tv-contact-form-wrapper h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 24px;
}

.tv-contact-map {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tv-contact-map iframe {
    display: block;
}

.tv-contact-socials {
    text-align: center;
}

.tv-contact-socials h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 20px;
}

.tv-social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.tv-social-link {
    width: 48px;
    height: 48px;
    background: #F8F9FA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7F8C8D;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tv-social-link:hover {
    background: #1ABC9C;
    color: white;
    transform: translateY(-4px);
}

/* ==========================================================================
   Tooltips
   ========================================================================== */

.tv-tooltip {
    position: absolute;
    background: #2C3E50;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

.tv-tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #2C3E50;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-muted { color: #95A5A6; }
.text-danger { color: #E74C3C; }
.text-success { color: #2ECC71; }
.text-warning { color: #F39C12; }
.text-info { color: #3498DB; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 40px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 40px; }

.mr-1 { margin-right: 8px; }
.mr-2 { margin-right: 16px; }
.ml-1 { margin-left: 8px; }
.ml-2 { margin-left: 16px; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1200px) {
    .tv-payment-content {
        grid-template-columns: 1fr;
    }
    
    .tv-payment-sidebar {
        position: static;
    }
    
    .tv-result-content {
        grid-template-columns: 1fr;
    }
    
    .tv-report-actions {
        position: static;
    }
}

@media (max-width: 768px) {
    /* Form adjustments */
    .tagus-value-form-container {
        padding: 20px 15px;
    }
    
    .tv-form-header h2 {
        font-size: 24px;
    }
    
    .tv-form-header p {
        font-size: 16px;
    }
    
    /* Step indicators mobile */
    .tv-step-indicators {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .tv-step-indicators::before {
        display: none;
    }
    
    .tv-step-indicator {
        min-width: 80px;
    }
    
    .tv-step-indicator .step-icon {
        width: 40px;
        height: 40px;
    }
    
    .tv-step-indicator .step-icon i {
        font-size: 16px;
    }
    
    .tv-step-indicator .step-name {
        font-size: 12px;
    }
    
    /* Form steps */
    .tv-form-step h3 {
        font-size: 20px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .col-md-4,
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Plans grid mobile */
    .tv-plans-grid {
        grid-template-columns: 1fr;
    }
    
    /* Navigation */
    .tv-form-navigation {
        flex-direction: column-reverse;
        gap: 12px;
    }
    
    .tv-form-navigation .btn {
        width: 100%;
    }
    
    /* Payment page mobile */
    .tv-payment-main {
        padding: 20px;
    }
    
    /* Contact page mobile */
    .tv-contact-content {
        grid-template-columns: 1fr;
    }
    
    .tv-contact-info {
        grid-template-columns: 1fr;
    }
    
    /* About features mobile */
    .tv-features-grid {
        grid-template-columns: 1fr;
    }
    
    /* FAQ mobile */
    .tv-faq-categories {
        overflow-x: auto;
        justify-content: flex-start;
    }
    
    /* Modals mobile */
    .tv-modal-content {
        padding: 20px;
        width: 95%;
    }
}

@media (max-width: 480px) {
    /* Very small screens */
    .tv-form-header h2 {
        font-size: 20px;
    }
    
    .btn {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    .plan-price .amount {
        font-size: 36px;
    }
    
    .tv-value-amount {
        font-size: 36px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .tv-form-navigation,
    .tv-payment-actions,
    .tv-report-actions,
    .tv-share-buttons,
    .tv-message-close,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .tagus-value-form-container,
    .tv-report-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .tv-value-display {
        background: none;
        border: 2px solid #1ABC9C;
    }
}