/* Websenix Form Styles */
.websenix-form-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
}

/* Override any theme styles for select elements */
.websenix-form-container select,
.websenix-form-container select option {
    color: #111827 !important;
    background-color: #fff !important;
}

/* Progress Bar */
.websenix-form-progress {
    display: none;
    margin-bottom: 40px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF7A00 0%, #FF9933 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Main Content Layout */
.websenix-form-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    min-height: 500px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Package selection step - full width unset grid */
.websenix-step-form[data-step="package-selection"] ~ .image-section {
    display: none;
}

[data-step="package-selection"] ~ * .websenix-form-content,
.websenix-form-container:has([data-step="package-selection"]) .websenix-form-content {
    display: grid;
    grid-template-columns: unset;
    max-width: 100%;
}

/* Full width form when no image section */
.websenix-form-content:has(.form-section:only-child) {
    grid-template-columns: 1fr;
    max-width: 100%;
}

/* Form Section */
.form-section {
    padding-right: 20px;
}

.form-section:only-child {
    padding-right: 0;
    max-width: 100%;
    margin: 0 auto;
}

/* Back Button at Top */
.back-button-top {
    margin-bottom: 24px;
}

.btn-back-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: #6b7280;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-back-top:hover {
    background: #f3f4f6;
    color: #374151;
}

.btn-back-top svg {
    width: 20px;
    height: 20px;
}

.form-header {
    margin-bottom: 32px;
}

.form-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1.2;
}

.form-header p {
    font-size: 18px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Form Elements */
.websenix-step-form {
    max-width: 100%;
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: flex;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px !important;
    background: #fff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    color: #111827 !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.form-group select {
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23374151' 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;
    cursor: pointer;
    line-height: 1.5 !important;
}

.form-group select option {
    color: #111827 !important;
    background: #fff !important;
    padding: 10px;
}

/* Additional specificity for select element */
select#business_state,
select#industry {
    color: #111827 !important;
    font-size: 16px !important;
}

select#business_state option,
select#industry option {
    color: #111827 !important;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #FF7A00;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

/* Radio Groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.radio-option:hover {
    border-color: #FF7A00;
    background: #fff5ed;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #FF7A00;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    transition: all 0.2s ease;
}

.radio-option input[type="radio"]:checked {
    background-color: #FF7A00;
    border-color: #FF7A00;
    box-shadow: inset 0 0 0 3px #fff;
}

.radio-option input[type="radio"]:hover {
    border-color: #FF7A00;
}

.radio-option input[type="radio"]:checked + .radio-text {
    color: #FF7A00;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: #FF7A00;
    background: #fff5ed;
}

.radio-text {
    flex: 1;
}

.radio-text strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.radio-text small {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

/* Package Options */
.package-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 32px 0;
}

.package-option {
    display: flex;
}

.package-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    position: relative;
    overflow: visible;
}

.package-card input[type="radio"] {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #FF7A00;
    border: 3px solid #e5e7eb;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    transition: all 0.2s ease;
}

.package-card input[type="radio"]:checked {
    background-color: #FF7A00;
    border-color: #FF7A00;
    box-shadow: inset 0 0 0 3px #fff;
}

.package-card input[type="radio"]:hover {
    border-color: #FF7A00;
}

.package-card:hover {
    border-color: #FF7A00;
    
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.package-card:has(input[type="radio"]:checked) {
    border-color: #FF7A00;
    border-width: 3px;
    box-shadow: 0 0 0 1px #FF7A00;
}


.package-pro:has(input[type="radio"]:checked) {
    border-color: #FF7A00;
    border-width: 3px;
}

/* Package Header */
.package-header {
    padding: 24px;
    padding-bottom: 16px;
}

.package-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.package-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.package-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-popular {
    background: #dcfce7;
    color: #FF7A00;
}

.package-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 16px 0;
    min-height: 42px;
}

.package-price-row {
    margin-bottom: 12px;
}

.package-price {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    margin-right: 4px;
}

.package-fee {
    font-size: 14px;
    color: #6b7280;
}

.package-timing {
    font-size: 13px;
    color: #111827;
    margin: 0;
    font-weight: 500;
}

/* Package Button */
.package-button {
    width: calc(100% - 48px);
    margin: 0 24px 24px 24px;
    padding: 14px 24px;
    background: #fff;
    border: 2px solid #111827;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    transition: all 0.2s ease;
}

.package-button:hover {
    background: #f9fafb;
}

.package-button-primary {
    background: #111827;
    color: #fff;
}

.package-button-primary:hover {
    background: #000;
}

/* Package Details */
.package-details {
    padding: 0 24px 24px 24px;
    border-top: 1px solid #e5e7eb;
    padding-top: 24px;
}

.package-details h4 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px 0;
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

.benefits-section {
    margin-bottom: 16px;
}

.package-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.package-benefits li {
    padding: 8px 0;
    padding-left: 24px;
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
}

.package-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #FF7A00;
    font-weight: bold;
    font-size: 16px;
}

.toggle-features {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 16px;
    display: block;
}

.toggle-features:hover {
    color: #1d4ed8;
}

.features-section {
    margin-top: 16px;
}

.package-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package-features-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #374151;
}

.package-features-list li:last-child {
    border-bottom: none;
}

.info-icon {
    width: 18px;
    height: 18px;
    color: #9ca3af;
    cursor: help;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
    text-align: center;
}

.btn-full-width {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(90deg, #000000 0%, #1a1a1a 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #FF7A00 0%, #FF9933 100%);
    transform: translateY(-1px);
}

.btn-skip {
    background: transparent;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.btn-skip:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

.btn-secondary {
    background: #f9fafb;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* Form Consent Section (Contact Info Step) */
.form-consent-section {
    margin-top: 24px;
}

.consent-text {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 0;
}

.security-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f0fdf4;
    border: 1px solid #d1fae5;
    border-radius: 12px;
    padding: 16px;
}

.security-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dcfce7;
    border-radius: 50%;
}

.security-icon svg {
    width: 24px;
    height: 24px;
}

.security-text {
    flex: 1;
}

.security-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #065f46;
    margin-bottom: 4px;
}

.security-text p {
    font-size: 14px;
    color: #047857;
    margin: 0;
    line-height: 1.5;
}

/* Image Section */
.image-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 20px;
}

.step-image {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 16px;
}

/* Loading States */
.websenix-form-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

.btn.loading .loading-spinner {
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.form-group.error input,
.form-group.error select {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 8px;
    display: block;
}

/* Success States */
.success-message {
    background: #d1fae5;
    color: #065f46;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    border-left: 4px solid #10b981;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .package-options {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .websenix-form-container {
        padding: 20px;
    }
    
    .websenix-form-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-section {
        padding-right: 0;
        order: 2;
    }
    
    .image-section {
        padding-left: 0;
        order: 1;
    }
    
    .form-header h2 {
        font-size: 28px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .package-options {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .websenix-form-container {
        padding: 16px;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .form-header p {
        font-size: 16px;
    }
    
    .package-card {
        padding: 20px;
    }
    
    .package-price {
        font-size: 28px;
    }
}

/* Animation for step transitions */
.websenix-form-content {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Industry other field */
#other-industry {
    display: none;
}

#other-industry.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 100px;
    }
}

.form-navigation p{
    width: 100%;
    text-align: center;
}
.form-navigation p button{
    width: 100%;
    text-align: center;
}
.form-navigation br{
    display: none;
    width: 0px;
    height: 0px;
}
.back-button-top{
    padding: 16px !important;

}
.back-button-top br{
    display: none;
    width: 0px;
    height: 0px;
}
.form-group br{
    display: none;
    width: 0px;
    height: 0px;
}
.package-options p{
    display: none;
}

/* Success Modal */
.websenix-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.websenix-success-modal.show {
    opacity: 1;
    visibility: visible;
}

.websenix-success-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.websenix-success-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 60px 50px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.websenix-success-modal.show .websenix-success-modal-content {
    transform: scale(1) translateY(0);
}

.success-icon {
    margin: 0 auto 30px;
    animation: successPop 0.6s ease 0.2s both;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.websenix-success-modal-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #10b981;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

.websenix-success-modal-content p {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 36px 0;
}

.success-modal-close {
    padding: 14px 36px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    width: auto !important;
    min-width: 180px;
    background: #10b981 !important;
    border: none !important;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-modal-close:hover {
    background: #059669 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}