/* Styles for the valuation form */

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

body.tagus-value-form {
    background-color: #f8f9fa;
}

.tagus-value-form-container {
    max-width: 900px;
    margin: 40px 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;
}

/* Fix for invisible placeholder text in required select fields */
select.form-control:invalid,
select.tv-form-input:invalid {
    color: #7F8C8D; /* A legible medium-gray for placeholder text */
}

select.form-control option,
select.tv-form-input option {
    color: #2C3E50; /* Ensure options have the standard dark text color */
}

/* 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;
    width: auto;
    border-bottom: none;
    display: inline-block;
    padding-right: 10px;
    background: #f8f9fa;
}

.form-section {
    position: relative;
}

.form-section {
    margin-bottom: 40px; /* Add space between sections */
}

.form-section > legend {
    position: absolute;
    top: -12px;
    left: 20px;
    background: #F8F9FA; /* Match section background */
    padding: 0 10px;
}

/* 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;
}

/*
* Final, Robust Flexbox Fix for Nice Select Dropdown
* --------------------------------------------------------------------------
* This ensures the text in the Nice Select dropdown is perfectly centered
* vertically by using a flexbox layout. It also resets the text alignment
* for the selected option to ensure it's left-aligned as expected.
*/
.tagus-value-form-container .nice-select {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important; /* Ensures arrow stays to the right */
}

.tagus-value-form-container .nice-select .current {
    display: block !important;
    width: 100%;
    text-align: left !important;
    padding-right: 20px; /* Space for the arrow */
    line-height: 1.6 !important; /* Use a normal line-height for the text itself */
}

/* Reset line-height for the options in the list to ensure they display correctly. */
.tagus-value-form-container .nice-select .list .option {
    line-height: 1.8; /* Reset to a normal line-height for readability */
}

/* ==========================================================================
   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;
}

/* Client Feedback Section */
#tv-client-feedback-section {
    border-top: 2px dashed #e0e6ed;
    margin-top: 30px;
    padding-top: 30px;
}
.tv-feedback-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}
.tv-feedback-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    color: #5d6d7e;
}
.tv-feedback-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #bdc3c7;
}
.tv-feedback-btn.selected {
    border-color: #1abc9c;
    background-color: #e6f7f4;
    color: #16a085;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(26,188,156,0.2);
}
.tv-feedback-btn i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}
.tv-feedback-btn.selected i {
    transform: scale(1.1);
}
#tv-feedback-message {
    font-weight: 600;
}
#tv-feedback-message.success {
    color: #27ae60;
}
#tv-feedback-message.error {
    color: #c0392b;
}
.tv-feedback-submitted {
    text-align: center;
    padding: 40px;
}

#tv-client-feedback-form .form-group {
    margin-top: 25px;
    text-align: left;
}

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

#tv-client-feedback-form textarea.form-control {
    min-height: 120px;
    background-color: #fff;
}

.expert-only-field {
  display: none;
}