body {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Reduce overall container spacing */
.form-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.form-container h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.form-container p {
    color: #666;
    text-align: center;
    margin-bottom: 40px;
}

/* Tighten form step spacing */
.form-step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    margin-bottom: 10px;
    /* Reduced from 15px */
}

.form-step.active {
    display: block;
    opacity: 1;
}

/* Adjust spacing between form elements */
.form-step h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 12px;
    /* Reduced from 15px */
    position: relative;
}

.form-step h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #3498db;
    border-radius: 2px;
}

.form-step label {
    display: block;
    width: 100%;
    max-width: 500px;
    /* Match inputs */
    margin-bottom: 5px;
    /* Reduced from 8px */
    color: #2c3e50;
    font-weight: 500;
}

/* Reduce input field spacing */
.form-step input,
.form-step select,
.form-step textarea {
    width: 100%;
    max-width: 500px;
    /* Add standard max-width */
    padding: 8px;
    /* Reduced from 12px */
    margin-bottom: 10px;
    /* Reduced from 15px */
    border: 1px solid #e1e8ed;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-step input:focus,
.form-step select:focus,
.form-step textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Update file input fields */
.form-step input[type="file"] {
    width: 100%;
    max-width: 500px;
    /* Match other inputs */
    padding: 10px;
    background: #f8f9fa;
}

/* Update form navigation spacing */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    /* Reduced from 15px */
    gap: 20px;
    position: relative;
    z-index: 3;
    padding-bottom: 0;
    /* Remove bottom padding */
}

.form-navigation button,
.form-navigation input[type="submit"],
.form-navigation .submit {
    width: auto;
    /* Add this */
    max-width: fit-content;
    /* Add this */
    padding: 12px 30px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.form-navigation button:hover,
.form-navigation input[type="submit"]:hover,
.form-navigation .submit:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Update password input wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
    max-width: 500px;
    /* Match other inputs */
}

.password-input-wrapper input {
    margin-bottom: 0;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.form-download {
    margin-bottom: 20px;
}

.download-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #3498db;
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    width: fit-content;
}

.download-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.form-note {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

.state-fees-p {
    background: rgba(52, 152, 219, 0.1);
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 1.1rem;
    color: #2c3e50;
    border-left: 4px solid #3498db;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.state-fees-p strong {
    font-size: 1.2rem;
    color: #3498db;
    font-weight: 600;
}

/* Tighten form layout */
.form-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 10px;
    /* Reduced from 15px */
    align-items: center;
    min-height: auto;
    /* Changed from 800px */
    position: relative;
}

/* Reduce form main spacing */
.form-main {
    flex: 1;
    position: relative;
    z-index: 2;
    margin-left: 50px;
    margin-bottom: 10px;
    /* Reduced from 15px */
    padding-bottom: 10px;
    /* Reduced from 15px */
}

.cart-summary {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 10px;
    /* Reduced from 15px */
    z-index: 1;
    height: auto;
    /* Changed from fit-content */
    max-height: calc(100vh - 20px);
    /* Reduced from 30px */
    overflow-y: auto;
    padding: 10px;
    /* Added padding */
}

.cart-summary-header {
    padding: 10px;
    /* Reduced from 20px */
    border-bottom: 1px solid #eee;
}

.cart-summary-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4rem;
}

.cart-summary-content {
    padding: 10px;
    /* Reduced from 15px */
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: #666;
}

.summary-item strong {
    color: #2c3e50;
    font-weight: 600;
}

.summary-services {
    margin: 25px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.summary-services h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.cart-totals {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.summary-item.total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 1.2rem;
}

.summary-item.total strong {
    color: #3498db;
}

.ein-elements {
    margin-top: 15px;
    padding-left: 25px;
    border-left: 2px solid #3498db;
}

/* Update EIN elements inputs */
.ein-elements input {
    width: 100%;
    max-width: 500px;
    /* Match other inputs */
    padding: 8px;
    margin-bottom: 15px;
}

.ein-elements .form-download {
    margin-bottom: 15px;
}

.ein-elements .form-upload {
    margin-bottom: 15px;
}

.sms-disclaimer {
    font-size: 0.8rem;
    color: #888;
    margin: -5px 0 15px 0;
    line-height: 1.4;
    max-width: 500px;
}

.error {
    border-color: #e74c3c !important;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
}

.error-summary {
    background-color: #e74c3c;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

/* Update additional services spacing */
.additional-services {
    margin-left: -15px;
    /* Reduced from -20px */
    margin-top: 15px;
    /* Reduced from 30px */
}

.service-item {
    background: transparent;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 8px;
    /* Reduced from 12px */
    margin-bottom: 8px;
    /* Reduced from 10px */
    transition: all 0.3s ease;
}

.service-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.service-item label {
    display: inline-flex;
    align-items: center;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-left: 10px;
    cursor: pointer;
}

.service-item input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

/* Update form-step styles */
.form-step#step-5 {
    margin-left: -50px;
    display: none;
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    background: transparent;
    border-radius: 10px;
    padding: 15px;
    /* Reduced from 20px */
    margin-bottom: 15px;
    /* Reduced from 20px */
}

.form-step#step-5.active {
    display: block;
}

.form-step#step-5 .cart-summary {
    margin-bottom: 40px;
}

.form-step#step-5 .additional-services {
    margin-top: 10px;
    /* Reduced from 20px */
    padding: 10px;
    /* Reduced from 15px */
    background-color: transparent;
}

/* Tighten terms section */
.terms-section {
    margin: 8px 0;
    /* Reduced from 15px */
    padding: 5px 0;
    /* Reduced from 10px */
}

.terms-section label {
    margin-bottom: 5px;
    /* Reduced from 8px */
}

/* Dark Mode Styles */
.dark-mode {
    background-color: #1a1a1a;
    color: #fff;
}

.dark-mode .navbar,
.dark-mode .footer,
.dark-mode .top {
    background: linear-gradient(to right, #1a1a1a, #2c3e50);
}

.dark-mode .form-container {
    background: #2c3e50;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dark-mode .form-container h2,
.dark-mode .form-step h3 {
    color: #fff;
}

.dark-mode .form-container p,
.dark-mode .form-step label {
    color: #ecf0f1;
}

.dark-mode .form-step input,
.dark-mode .form-step select,
.dark-mode .form-step textarea {
    background: rgba(52, 152, 219, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dark-mode .form-step input[type="file"] {
    background: rgba(52, 152, 219, 0.1);
}

.dark-mode .toggle-password {
    color: #ecf0f1;
}

.dark-mode .toggle-password:hover {
    color: #3498db;
}

.dark-mode .form-note {
    color: #ecf0f1;
}

.dark-mode .download-btn {
    background: #3498db;
}

.dark-mode .download-btn:hover {
    background: #2980b9;
}

.dark-mode .state-fees-p {
    background: rgba(52, 152, 219, 0.2);
    color: #ecf0f1;
}

.dark-mode .state-fees-p strong {
    color: #3498db;
}

.dark-mode .cart-summary {
    background: #2c3e50;
}

.dark-mode .cart-summary-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .cart-summary-header h3,
.dark-mode .summary-services h4 {
    color: #fff;
}

.dark-mode .summary-item {
    color: #ecf0f1;
}

.dark-mode .summary-item strong {
    color: #fff;
}

.dark-mode .summary-item.total strong {
    color: #3498db;
}

.dark-mode .summary-services,
.dark-mode .cart-totals,
.dark-mode .summary-item.total {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .ein-elements {
    border-left-color: rgba(52, 152, 219, 0.5);
}

.dark-mode .error-message {
    color: #ff6b6b;
}

.dark-mode .sms-disclaimer {
    color: #aaa;
}

.dark-mode .service-item {
    background: #2c3e50;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .service-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dark-mode .service-item label {
    color: #ecf0f1;
}

.dark-mode .form-step#step-5 {
    background: transparent;
}

.dark-mode .form-step#step-5 .additional-services {
    background: transparent;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .form-container {
        margin: 20px;
        padding: 20px;
    }

    .form-container h2 {
        font-size: 1.75rem;
    }

    .form-step h3 {
        font-size: 1.3rem;
    }

    .state-fees-p {
        font-size: 1rem;
        padding: 12px 15px;
    }

    .state-fees-p strong {
        font-size: 1.1rem;
    }

    .form-step#step-5 {
        padding: 20px;
    }

    .service-item {
        padding: 15px;
    }

    .service-item label {
        font-size: 1rem;
    }

    .form-step#step-5 .additional-services {
        padding: 20px;
    }

    .form-step input,
    .form-step select,
    .form-step textarea,
    #registered-agent-info input,
    .registered-agent-info input,
    .ein-elements input,
    .form-step input[type="file"],
    .password-input-wrapper {
        max-width: 100%;
        /* Full width on mobile */
    }

    .form-navigation button,
    .form-navigation .submit {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .form-container {
        max-width: 100%;
        margin: 20px;
        padding: 20px;
    }

    .form-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-main {
        margin-bottom: 30px;
    }

    .cart-summary {
        position: relative;
        top: 0;
        max-height: none;
        overflow-y: visible;
    }
}

/* Improve Responsive Styles */
@media (max-width: 1080px) {
    .form-container {
        margin: 20px;
        padding: 15px;
    }

    .form-container h2 {
        font-size: 1.75rem;
        margin-bottom: 20px;
    }

    .form-container p {
        margin-bottom: 25px;
    }

    .form-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-main {
        margin-left: 0;
        padding-bottom: 20px;
    }

    .form-step h3 {
        font-size: 1.3rem;
    }

    .form-step input,
    .form-step select,
    .form-step textarea,
    #registered-agent-info input,
    .registered-agent-info input,
    .ein-elements input,
    .form-step input[type="file"],
    .password-input-wrapper {
        max-width: 100%;
        /* Full width on mobile */
        padding: 12px;
    }

    .cart-summary {
        position: relative;
        top: 0;
        max-height: none;
        overflow-y: visible;
        margin-bottom: 30px;
        width: 100%;
    }

    .state-fees-p {
        padding: 12px 15px;
        font-size: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .state-fees-p strong {
        font-size: 1.1rem;
    }

    .form-step#step-5 {
        margin-left: 0;
        padding: 15px;
    }

    .service-item {
        padding: 15px;
    }

    .service-item label {
        font-size: 1rem;
    }

    .form-navigation {
        flex-direction: column-reverse;
        align-items: center;
        gap: 15px;
    }

    .form-navigation button,
    .form-navigation input[type="submit"],
    .form-navigation .submit {
        width: 100%;
        max-width: 100%;
        padding: 12px 20px;
        text-align: center;
    }

    .notification {
        margin: 10px 0;
        padding: 12px 15px;
    }

    .notification p {
        font-size: 0.9rem;
    }
}

/* Tablet Layout */
@media (min-width: 769px) and (max-width: 1080px) {
    .form-container {
        padding: 20px;
    }

    .form-navigation {
        flex-direction: row;
    }

    .form-navigation button,
    .form-navigation input[type="submit"],
    .form-navigation .submit {
        width: auto;
        min-width: 150px;
    }

    .state-fees-p {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .form-container {
        margin: 10px;
        padding: 10px;
    }

    .form-container h2 {
        font-size: 1.5rem;
    }

    .form-step h3 {
        font-size: 1.2rem;
    }

    .form-step {
        margin-bottom: 5px;
    }

    .form-step input,
    .form-step select,
    .form-step textarea {
        padding: 10px;
        font-size: 0.95rem;
    }

    .cart-summary-header h3 {
        font-size: 1.2rem;
    }

    .cart-summary-content {
        padding: 10px;
    }

    .summary-item {
        margin-bottom: 10px;
        font-size: 0.9rem;
    }

    .summary-item.total {
        font-size: 1.1rem;
    }
}

/* Consolidate registered agent styles */
.registered-agent-info,
#registered-agent-info {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.registered-agent-info h4,
#registered-agent-info h4 {
    margin-bottom: 15px;
    color: #333;
}

.registered-agent-info label,
#registered-agent-info label {
    display: block;
    margin-bottom: 5px;
}

.registered-agent-info input,
#registered-agent-info input {
    width: 100%;
    max-width: 500px;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Dark mode consolidated styles */
.dark-mode .registered-agent-info,
.dark-mode #registered-agent-info {
    background-color: #2c3e50;
    border-color: #34495e;
}

.dark-mode .registered-agent-info h4,
.dark-mode #registered-agent-info h4 {
    color: #ecf0f1;
}

.dark-mode .registered-agent-info input,
.dark-mode #registered-agent-info input {
    background-color: #34495e;
    border-color: #2c3e50;
    color: #ecf0f1;
}

/* Summary service item styles */
.summary-service-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.summary-service-item:last-child {
    border-bottom: none;
}

.dark-mode .summary-service-item {
    border-bottom-color: #2c3e50;
}

/* Update form navigation styles */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    gap: 20px;
    position: relative;
    z-index: 3;
    padding-bottom: 0;
}

.form-navigation button,
.form-navigation input[type="submit"],
.form-navigation .submit {
    width: auto;
    /* Add this */
    max-width: fit-content;
    /* Add this */
    padding: 12px 30px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.form-navigation button:hover,
.form-navigation input[type="submit"]:hover,
.form-navigation .submit:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Dark mode styles for submit button */
.dark-mode .form-navigation .submit {
    background: #3498db;
    color: #fff;
}

.dark-mode .form-navigation .submit:hover {
    background: #2980b9;
}

/* Responsive styles for submit button */
@media (max-width: 768px) {

    .form-navigation button,
    .form-navigation .submit {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Notification styles */
.notification {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
    padding: 15px 20px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.notification p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    line-height: 1.5;
}

.notification i {
    color: #ffc107;
    font-size: 1.2rem;
}

.notification a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.notification a:hover {
    color: #003d82;
    text-decoration: underline;
}

/* Dark mode styles */
.dark-mode .notification {
    background-color: #2c3e50;
    border-left-color: #ffc107;
    color: #ecf0f1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dark-mode .notification a {
    color: #3498db;
}

.dark-mode .notification a:hover {
    color: #2980b9;
}

/* Responsive styles */
@media (max-width: 768px) {
    .notification {
        margin: 10px;
        padding: 12px 15px;
    }

    .notification p {
        font-size: 0.9rem;
    }

    .notification i {
        font-size: 1.1rem;
    }
}