/* Startup Package Builder - Frontend Styles */

.spb-package-builder {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    background-color: #f5f5f5;
    min-height: 100vh;
    font-size: 14px !important;
}

.spb-package-builder * {
    box-sizing: border-box;
}

.spb-header {
    margin-bottom: 40px;
    text-align: center;
}

.spb-title {
    font-size: 1.2em !important;
    font-weight: bold !important;
    color: #333 !important;
    margin-bottom: 10px !important;
    text-transform: lowercase !important;
    letter-spacing: -0.2px !important;
    line-height: 1.3 !important;
}

.spb-subtitle {
    font-size: 0.8em !important;
    color: #666 !important;
    margin-bottom: 0 !important;
    line-height: 1.5 !important;
}

/* Progress Bar */
.spb-progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 0 10px;
    position: relative;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.spb-progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 0;
}

.spb-progress-bar::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    height: 2px;
    background-color: #6c5ce7;
    z-index: 1;
    width: 0;
    transition: width 0.3s ease;
}

.spb-progress-bar[data-progress="1"]::after {
    width: 0%;
}

.spb-progress-bar[data-progress="2"]::after {
    width: 50%;
}

.spb-progress-bar[data-progress="3"]::after {
    width: 100%;
}

.spb-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s ease;
}

.spb-step:hover {
    transform: translateY(-2px);
}

.spb-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.spb-step.active .spb-step-number {
    background-color: #333;
    color: white;
    border-color: #333;
}

.spb-step.completed .spb-step-number {
    background-color: #333;
    color: white;
    border-color: #333;
    font-size: 0;
}

.spb-step.completed .spb-step-number::before {
    font-size: 1.1em;
}

.spb-step.completed .spb-step-number::before {
    content: '✓';
    font-size: 1.1em;
}

.spb-step.completed .spb-step-number {
    font-size: 0;
}

.spb-step-label {
    color: #666;
    font-size: 0.85em;
    text-align: center;
    transition: all 0.3s ease;
    line-height: 1.3;
}

.spb-step.active .spb-step-label {
    color: #333;
    font-weight: bold;
}

.spb-step.completed .spb-step-label {
    color: #6c5ce7;
    text-decoration: underline;
    font-weight: normal;
}

.spb-step:not(.active):not(.completed) .spb-step-label {
    color: #6c5ce7;
    text-decoration: underline;
}

/* Package Sections */
.spb-package-section {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.spb-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
}

.spb-section-header h2 {
    font-size: 0.95em !important;
    color: #333 !important;
    margin: 0 !important;
    font-weight: bold !important;
    line-height: 1.3 !important;
}

.spb-toggle-icon {
    font-size: 1em;
    color: #666;
    cursor: pointer;
    transition: transform 0.3s ease;
    user-select: none;
}

.spb-package-section.collapsed .spb-toggle-icon {
    transform: rotate(180deg);
}

.spb-section-description {
    margin-bottom: 20px !important;
    color: #666 !important;
    line-height: 1.5 !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    font-size: 0.8em !important;
}

.spb-section-description p {
    font-size: 0.8em !important;
    margin: 0 !important;
}

.spb-package-section.collapsed .spb-section-description,
.spb-package-section.collapsed .spb-options-group,
.spb-package-section.collapsed .spb-subtotal {
    display: none;
}

.spb-options-group {
    margin-bottom: 25px;
}

.spb-options-group h3 {
    font-size: 0.85em !important;
    color: #333 !important;
    margin-bottom: 10px !important;
    font-weight: bold !important;
    line-height: 1.3 !important;
}

/* Checkbox and Radio Styles */
.spb-checkbox-group,
.spb-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spb-checkbox-label,
.spb-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
    margin-bottom: 4px;
}

.spb-checkbox-label:hover,
.spb-radio-label:hover {
    background-color: #f8f8f8;
}

.spb-checkbox-label input[type="checkbox"],
.spb-radio-label input[type="radio"] {
    display: none;
}

.spb-checkbox-custom,
.spb-radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.spb-checkbox-custom {
    border-radius: 4px;
}

.spb-radio-custom {
    border-radius: 50%;
}

.spb-checkbox-label input[type="checkbox"]:checked + .spb-checkbox-custom,
.spb-radio-label input[type="radio"]:checked + .spb-radio-custom {
    background-color: #6c5ce7;
    border-color: #6c5ce7;
}

.spb-checkbox-label input[type="checkbox"]:checked + .spb-checkbox-custom::after {
    content: '✓';
    color: white;
    font-weight: bold;
}

.spb-radio-label input[type="radio"]:checked + .spb-radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
}

.spb-option-label {
    flex: 1;
    color: #333 !important;
    font-size: 0.85em !important;
    line-height: 1.4 !important;
}

.spb-price {
    color: #6c5ce7;
    font-weight: bold;
    margin-left: 8px;
}

.spb-info-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ddd;
    color: #666;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    margin-left: 8px;
    cursor: help;
    position: relative;
    transition: background-color 0.2s, color 0.2s;
}

.spb-info-icon:hover {
    background-color: #6c5ce7;
    color: white;
}

.spb-tooltip {
    position: absolute;
    background-color: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 0.85em;
    line-height: 1.5;
    max-width: 300px;
    z-index: 10000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    pointer-events: none;
}

.spb-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333;
}

/* Subtotal */
.spb-subtotal {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.spb-subtotal h3 {
    font-size: 0.85em !important;
    color: #333 !important;
    margin-bottom: 6px !important;
    font-weight: bold !important;
    line-height: 1.3 !important;
}

.spb-subtotal-amount {
    font-size: 1em !important;
    color: #e74c3c !important;
    font-weight: bold !important;
    line-height: 1.3 !important;
}

/* Contact Form */
.spb-contact-form {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 40px;
    margin-bottom: 0;
}

.spb-contact-form h2 {
    font-size: 1em !important;
    color: #333 !important;
    margin-bottom: 10px !important;
    font-weight: bold !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    line-height: 1.3 !important;
}

.spb-contact-form > p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
    font-size: 0.875em;
}

.spb-form-group {
    margin-bottom: 20px;
}

.spb-form-group label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 500;
    font-size: 0.9em;
}

.spb-required {
    color: #e74c3c;
    font-size: 0.9em;
}

.spb-name-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.spb-form-group input[type="text"],
.spb-form-group input[type="email"],
.spb-form-group input[type="tel"],
.spb-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
    transition: border-color 0.2s;
}

.spb-form-group input:focus,
.spb-form-group select:focus {
    outline: none;
    border-color: #6c5ce7;
}

/* Confirm Section */
.spb-confirm-section {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 40px;
    margin-bottom: 0;
}

.spb-confirm-section h2 {
    font-size: 1em !important;
    color: #333 !important;
    margin-bottom: 10px !important;
    font-weight: bold !important;
    line-height: 1.3 !important;
}

.spb-confirm-section h3 {
    font-size: 0.9em !important;
    color: #333 !important;
    margin-bottom: 10px !important;
    font-weight: bold !important;
    margin-top: 20px !important;
    line-height: 1.3 !important;
}

.spb-confirm-section h3:first-of-type {
    margin-top: 0;
}

.spb-confirm-section ol {
    margin-left: 20px;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 0.875em;
}

.spb-package-summary {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 4px;
}

.spb-package-summary h3 {
    margin-bottom: 12px;
    color: #333;
    font-size: 0.95em;
    font-weight: bold;
}

.spb-totals,
.spb-deposit {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 4px;
}

.spb-totals h3,
.spb-deposit h3 {
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95em;
    font-weight: bold;
}

.spb-total-amount {
    font-size: 1.2em !important;
    color: #333 !important;
    font-weight: bold !important;
    line-height: 1.3 !important;
}

.spb-deposit-amount {
    font-size: 1.2em !important;
    color: #e74c3c !important;
    font-weight: bold !important;
    line-height: 1.3 !important;
}

.spb-terms-section {
    margin-top: 30px;
}

.spb-terms-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.spb-terms-box {
    max-height: 200px;
    overflow-y: auto;
    padding: 15px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.spb-terms-box p {
    margin-bottom: 10px;
}

/* Step Content */
.spb-step-content {
    background: transparent;
    padding: 0;
}

/* Navigation Buttons */
.spb-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.spb-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.spb-btn-primary {
    background-color: #6c5ce7;
    color: white;
}

.spb-btn-primary:hover:not(:disabled) {
    background-color: #5a4fcf;
}

.spb-btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.spb-btn-secondary {
    background-color: #6c5ce7;
    color: white;
}

.spb-btn-secondary:hover {
    background-color: #5a4fcf;
}

/* Responsive */
@media (max-width: 768px) {
    .spb-package-builder {
        padding: 20px 15px;
    }
    
    .spb-title {
        font-size: 1.5em;
    }
    
    .spb-subtitle {
        font-size: 0.9em;
    }
    
    .spb-progress-bar {
        margin-bottom: 30px;
        padding: 0 5px;
    }
    
    .spb-step-number {
        width: 32px;
        height: 32px;
        font-size: 0.8em;
    }
    
    .spb-step-label {
        font-size: 0.75em;
    }
    
    .spb-package-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .spb-section-header h2 {
        font-size: 1.1em;
    }
    
    .spb-options-group h3 {
        font-size: 0.95em;
    }
    
    .spb-contact-form {
        padding: 20px;
    }
    
    .spb-contact-form h2 {
        font-size: 1.2em;
    }
    
    .spb-confirm-section {
        padding: 20px;
    }
    
    .spb-confirm-section h2 {
        font-size: 1.2em;
    }
    
    .spb-confirm-section h3 {
        font-size: 1em;
    }
    
    .spb-name-fields {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .spb-navigation {
        flex-direction: column;
        gap: 10px;
        margin-top: 30px;
    }
    
    .spb-btn {
        width: 100%;
        padding: 14px 20px;
    }
    
    .spb-subtotal-amount,
    .spb-total-amount,
    .spb-deposit-amount {
        font-size: 1.3em;
    }
}

