:root {
    --primary-color: #005c97;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --background-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --accent-color: #f37506;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--background-gradient);
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    width: 100%;
    overflow: hidden;
    margin: 40px auto;
}

.logo {
    max-height: 120px;
    width: auto;
    margin: 0 auto 20px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header {
    background: var(--primary-color);
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
}

/* Conversion Optimization Elements */
.urgency-banner {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    margin-bottom: 20px;
    display: inline-flex;
    gap: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    animation: pulse-urgent 2s infinite;
}

.availability-alert, .response-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.trust-signals {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.value-banner {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 1rem;
}

.value-banner p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@keyframes pulse-urgent {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.header p {
    margin: 10px 0 0;
    font-size: 1.2rem;
    opacity: 0.9;
}

.content {
    padding: 40px;
}

.section {
    margin-bottom: 50px;
}

.section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    border-bottom: none;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.card {
    background: var(--light-color);
    border-radius: 10px;
    padding: 25px;
    border-left: 5px solid var(--primary-color);
    display: flex;
    flex-direction: column;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.card p {
    margin-top: 0;
    flex-grow: 1;
}

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

ul.features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 1rem;
}

ul.features i {
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 4px;
}

.fa-check-circle {
    color: var(--success-color);
}

.fa-times-circle {
    color: var(--danger-color);
}

.price-box {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.price-box .price {
    font-size: 3.5rem;
    font-weight: 700;
}

.price-box .per-month {
    font-size: 1.1rem;
    opacity: 0.8;
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: white !important; /* Ensure text is white */
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0, 0.2);
    margin-top: 20px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0, 0.3);
    background: #e06a03;
}

.cta-button i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* Testimonials */
.testimonials {
    background: var(--light-color);
    padding: 40px;
    margin: 0 -40px 50px -40px; /* Extend to edges of content padding */
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border-top: 5px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.testimonial-card p {
    margin: 0 0 15px 0;
    font-style: italic;
}

.testimonial-card footer cite {
    font-weight: 600;
    color: var(--primary-color);
}

/* FAQ Section */
.faq-container {
    max-width: 750px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer p {
    padding: 0 10px 20px 10px;
    margin: 0;
    color: #555;
}

.faq-item.open .faq-answer {
    transition: max-height 0.5s ease-in;
}

.fine-print {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 25px;
    border-radius: 10px;
    font-size: 0.95rem;
}

.fine-print h4 {
    margin-top: 0;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 15px;
}

.fine-print > p {
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.fine-print-list {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 15px 20px;
    align-items: start;
}

.fine-print-list dt {
    font-weight: 600;
    color: var(--dark-color);
    grid-column: 1;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fine-print-list dt i {
    font-size: 1.2rem;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.fine-print-list dd {
    margin: 0;
    grid-column: 2;
    text-align: left;
    color: #555;
    padding-left: 5px;
}

.footer {
    text-align: center;
    padding: 40px;
    background: var(--light-color);
}

.footer h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.footer p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer small {
    display: block;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        padding: 0;
    }
    .container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .header {
        padding: 30px 20px;
    }
    .header h1 {
        font-size: 2rem;
    }
    .content {
        padding: 30px 20px;
    }
    .grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }
    .testimonials {
        padding: 30px 20px;
        margin: 0 -20px 40px -20px;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .footer {
        padding: 30px 20px;
    }

    .fine-print-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .fine-print-list dt {
        text-align: left;
        margin-bottom: 5px;
    }

    .fine-print-list dd {
        padding-left: 0;
        margin-bottom: 15px;
    }
}

/* Enhanced Form Styling */
form { width: 100%; }

/* Fieldsets */
fieldset { 
    border: none; 
    padding: 30px; 
    margin: 0 0 30px 0; 
    background: var(--light-color); 
    border-radius: 15px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    transition: all 0.3s ease;
    display: none; /* Hide all fieldsets by default for multi-step */
}

/* Show active fieldset */
fieldset.active {
    display: block;
    animation: slideInFromRight 0.3s ease-out;
}

/* Animation for form steps */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


fieldset:last-of-type { margin-bottom: 0; }

/* Legend styling */
legend { 
    font-size: 1.8rem; 
    font-weight: 600; 
    color: var(--primary-color); 
    margin-bottom: 25px; 
    padding: 0; 
    width: 100%; 
    border-bottom: 2px solid #eee; 
    padding-bottom: 15px; 
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Form groups */
.form-group { 
    margin-bottom: 25px; 
    position: relative;
}

.form-group:last-child { margin-bottom: 0; }

/* Labels */
label { 
    display: block; 
    margin-bottom: 10px; 
    font-weight: 600; 
    color: var(--dark-color); 
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

/* Required field indicator */
.required-star {
    color: var(--danger-color);
    margin-left: 5px;
    font-size: 1.2rem;
}

/* Form inputs */
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 18px 15px; /* Larger touch targets */
    border: 2px solid #e0e0e0;
    border-radius: 12px; /* More rounded for modern look */
    font-size: 1.1rem; /* Larger text for better readability */
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    min-height: 50px; /* Minimum touch target size */
}

input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="tel"]:focus, 
input[type="password"]:focus, 
select:focus { 
    outline: none; 
    border-color: var(--primary-color); 
    box-shadow: 0 0 8px rgba(0, 92, 151, 0.4); 
}

input::placeholder,
select::placeholder {
    color: #aaa;
    opacity: 1;
}

/* Help text */
.field-help {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-top: 8px;
    margin-bottom: 0;
}

/* Help buttons */
.help-button {
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: help;
    padding: 0;
    margin-left: 8px;
    font-size: 1.1rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.help-button:hover {
    color: var(--primary-color);
}

/* Tooltips */
.help-button[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 10px 15px;
    width: 250px;
    z-index: 1;
    font-size: 0.9rem;
    font-weight: normal;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.help-button[data-tooltip]:hover::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--dark-color) transparent transparent transparent;
    z-index: 1;
}

/* Section intro */
.section-intro {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* Info box */
.info-box {
    display: flex;
    align-items: flex-start;
    background-color: rgba(0, 92, 151, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.info-box i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 2px;
}

.info-box p {
    margin: 0;
    color: var(--dark-color);
}

/* Password input container */
.password-input-container {
    position: relative;
    display: flex;
}

.password-input-container input {
    flex-grow: 1;
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
}

/* Password strength meter */
.password-strength-meter {
    height: 5px;
    background-color: #e0e0e0;
    margin-top: 10px;
    border-radius: 3px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s, background-color 0.3s;
}

.strength-weak { width: 25%; background-color: var(--danger-color); }
.strength-medium { width: 50%; background-color: #ffc107; }
.strength-strong { width: 75%; background-color: #4caf50; }
.strength-very-strong { width: 100%; background-color: #2e7d32; }

/* Password requirements */
.password-requirements {
    margin-top: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 15px;
    font-size: 0.9rem;
}

.password-requirements p {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.password-requirements ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.password-requirements li i {
    margin-right: 10px;
    font-size: 1rem;
}

.password-requirements .fa-times-circle {
    color: var(--danger-color);
}

.password-requirements .fa-check-circle {
    color: var(--success-color);
}

/* Error and success messages */
.error-message {
    color: var(--danger-color);
    font-size: 0.9rem;
    margin-top: 8px;
    display: block;
}

/* Contact information styling */
.help-text {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: center;
}

.help-text i {
    color: var(--primary-color);
    margin-right: 5px;
}

.phone-number {
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.phone-number:hover {
    color: var(--accent-color);
}

.phone-number.revealed {
    text-decoration: none;
    cursor: default;
}

.separator {
    margin: 0 10px;
    color: var(--secondary-color);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success-message {
    color: var(--success-color);
    font-size: 0.9rem;
    margin-top: 8px;
    display: block;
}

/* Help accordion */
.help-accordion {
    margin-top: 15px;
}

.accordion-toggle {
    background-color: #f5f5f5;
    color: var(--dark-color);
    cursor: pointer;
    padding: 12px 15px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1rem;
    transition: 0.4s;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.accordion-toggle:hover {
    background-color: #e9e9e9;
}

.accordion-toggle i {
    transition: transform 0.3s ease;
}

.accordion-toggle.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.accordion-content.active {
    max-height: 500px;
}

.help-instructions {
    padding: 15px;
}

.help-instructions h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.help-instructions ol {
    margin: 0 0 15px 20px;
    padding: 0;
}

.help-instructions li {
    margin-bottom: 8px;
}

.help-instructions code {
    background-color: #f0f0f0;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9rem;
}

/* Security banner */
.security-banner {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.security-icon {
    font-size: 2.5rem;
    color: var(--success-color);
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-text h4 {
    margin-top: 0;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.security-text p {
    margin: 0;
    color: var(--secondary-color);
}

/* Security badges */
.security-badges {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.badge i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.badge span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* Payment terms */
.payment-terms {
    margin-top: 25px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 5px;
    margin-right: 10px;
    transform: scale(1.2);
}

.checkbox-group label {
    font-size: 0.95rem;
    font-weight: normal;
    line-height: 1.5;
}

.terms-link {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Resume registration banner */
.resume-banner {
    background-color: #f0f8ff;
    border: 1px solid #b8daff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

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

.resume-banner-content i.fa-info-circle {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.resume-text {
    flex-grow: 1;
}

.resume-text p {
    margin: 0;
    color: var(--dark-color);
    font-weight: 500;
}

.resume-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    margin-left: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.resume-btn:hover {
    background-color: #004a7c;
}

.dismiss-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 10px;
    padding: 5px;
}

.dismiss-btn:hover {
    color: var(--dark-color);
}

/* Saving indicators */
.saving-indicator, .success-indicator {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    padding: 8px 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.saving-indicator i {
    margin-right: 8px;
    color: var(--primary-color);
}

.success-indicator i {
    margin-right: 8px;
    color: var(--success-color);
}

/* Form navigation */
.form-navigation {
    margin-top: 30px;
    position: relative;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
}

.nav-button, .submit-button {
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-button {
    background-color: #f0f0f0;
    color: var(--dark-color);
    border: 2px solid #e0e0e0;
}

.nav-button:hover {
    background-color: #e0e0e0;
}

.nav-button i {
    margin: 0 8px;
}

.submit-button {
    background-color: var(--success-color);
    color: white;
    border: none;
    padding: 15px 40px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    flex-grow: 1;
    margin-left: 10px;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
}

.submit-button i {
    margin-left: 10px;
}

/* Form progress indicator */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-progress::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 2px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 60px; /* Larger touch targets */
    min-width: 80px;
    position: relative;
}

.step-number {
    background: rgba(255,255,255,0.3);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-label {
    font-size: 0.8rem;
    text-align: center;
}

.progress-step.active {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    font-weight: 600;
    transform: scale(1.05);
}

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

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

.progress-step.completed .step-number {
    background: rgba(255,255,255,0.3);
}

.progress-step.completed::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* Form intro */
.form-intro {
    text-align: center;
    margin-bottom: 30px;
}

.form-help-text {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.phone-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

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

/* Card container */
#card-container { 
    padding: 20px; 
    border: 2px solid #ccc; 
    border-radius: 8px; 
    background: white; 
    min-height: 40px;
    margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    fieldset {
        padding: 20px;
    }
    
    legend {
        font-size: 1.5rem;
    }
    
    .form-progress {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .form-progress::before {
        /* display: none; */  
    }
    
    .security-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .security-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .submit-button {
        margin-left: 0;
    }
    
    .badge {
        min-width: 80px;
        padding: 10px;
    }
}
