/* SSCI Security Services Quote Builder - Styles */

.ssci-container {
    max-width: 1000px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
}

/* Notice Styles */
.ssci-notice {
    background: #fff3cd;
    border: 2px solid #ff6b6b;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.ssci-notice-warning {
    background-color: #ffe8e8;
    border-color: #ff6b6b;
}

.ssci-notice-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.ssci-notice-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #d63031;
}

.ssci-notice-content p {
    margin: 5px 0;
    color: #555;
}

/* Step Styles */
.ssci-step {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.ssci-step-active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ssci-step-header {
    margin-bottom: 25px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 15px;
}

.ssci-step-header h2 {
    margin: 0 0 10px 0;
    color: #007bff;
    font-size: 24px;
}

.ssci-step-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Search Box */
.ssci-search-box {
    margin-bottom: 30px;
}

.ssci-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.ssci-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Grid Styles */
.ssci-services-grid,
.ssci-classes-grid,
.ssci-options-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); */
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .ssci-services-grid,
    .ssci-classes-grid,
    .ssci-options-grid {
        grid-template-columns: 1fr;
    }
}

/* Card Styles */
.ssci-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.ssci-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    transform: translateY(-4px);
}

.ssci-card.selected {
    border-color: #28a745;
    background-color: #f0f8f4;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
}

.ssci-card-image {
    width: 100%;
    height: 150px;
    background-color: #f5f5f5;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #999;
    overflow: hidden;
}

.ssci-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ssci-card-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.ssci-card-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    text-align: left;
}

.ssci-card-unit {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.ssci-card-price {
    font-weight: 700;
    font-size: 18px;
    color: #007bff;
}

/* Quantity Section */
.ssci-quantity-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.ssci-quantity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.ssci-quantity-item:last-child {
    border-bottom: none;
}

.ssci-quantity-info {
    flex: 1;
}

.ssci-quantity-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.ssci-quantity-price {
    font-size: 14px;
    color: #666;
}

.ssci-quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ssci-qty-input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

/* Options Grid */
.ssci-options-section {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #bee5eb;
}

.ssci-options-section h3 {
    margin-top: 0;
    color: #007bff;
}

.ssci-option-checkbox {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: white;
    margin-bottom: 10px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.ssci-option-checkbox:hover {
    background-color: #f9f9f9;
    border-color: #007bff;
}

.ssci-option-checkbox input[type="checkbox"] {
    margin-right: 15px;
    margin-top: 2px;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.ssci-option-info {
    flex: 1;
}

.ssci-option-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.ssci-option-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.ssci-option-price {
    color: #007bff;
    font-weight: 600;
}

/* Quote Styles */
.ssci-quote-notice {
    background: #e8f4f8;
    border: 1px solid #b3d9e8;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    gap: 30px;
}

.ssci-quote-notice p {
    margin: 5px 0;
}

.ssci-quote-breakdown {
    margin-bottom: 30px;
    overflow-x: auto;
}

.ssci-quote-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.ssci-quote-table thead {
    background-color: #007bff;
    color: white;
}

.ssci-quote-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.ssci-quote-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.ssci-quote-table tbody tr:hover {
    background-color: #f9f9f9;
}

.ssci-quote-footer {
    background-color: #f9f9f9;
    font-weight: 600;
}

.ssci-quote-footer td {
    border-bottom: 1px solid #ddd;
}

.ssci-quote-total {
    background-color: #28a745;
    color: white;
}

.ssci-quote-total td {
    border: none;
    padding: 15px;
    font-size: 16px;
}

.ssci-label {
    text-align: right !important;
}

.ssci-amount {
    text-align: right !important;
    font-weight: 700;
}

/* Button Styles */
.ssci-btn {
    padding: 12px 25px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ssci-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ssci-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ssci-btn-primary {
    background-color: #007bff;
    color: white;
}

.ssci-btn-primary:hover:not(:disabled) {
    background-color: #0056b3;
}

.ssci-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.ssci-btn-secondary:hover:not(:disabled) {
    background-color: #545b62;
}

.ssci-btn-success {
    background-color: #28a745;
    color: white;
}

.ssci-btn-success:hover:not(:disabled) {
    background-color: #218838;
}

.ssci-btn-info {
    background-color: #17a2b8;
    color: white;
}

.ssci-btn-info:hover:not(:disabled) {
    background-color: #138496;
}

/* Step Actions */
.ssci-step-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.ssci-final-actions {
    justify-content: space-between;
}

.ssci-arrow {
    font-size: 18px;
}

/* Progress Indicator */
.ssci-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.ssci-progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ddd;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ssci-progress-step.ssci-progress-active {
    background-color: #007bff;
    color: white;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.25);
}

.ssci-progress-step.ssci-progress-completed {
    background-color: #28a745;
    color: white;
}

.ssci-progress-line {
    width: 30px;
    height: 2px;
    background-color: #ddd;
}

/* Loading State */
.ssci-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.ssci-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 3px solid #ddd;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ssci-container {
        margin: 20px 10px;
    }
    
    .ssci-step {
        padding: 20px;
    }
    
    .ssci-step-actions {
        flex-direction: column;
    }
    
    .ssci-btn {
        width: 100%;
        justify-content: center;
    }
    
    .ssci-quote-notice {
        flex-direction: column;
        gap: 10px;
    }
    
    .ssci-progress {
        gap: 5px;
    }
    
    .ssci-progress-line {
        width: 15px;
    }
}

/* Modal Styles */
.ssci-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ssci-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.ssci-modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10000;
}

.ssci-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
}

.ssci-modal-header h2 {
    margin: 0;
    font-size: 22px;
    color: #333;
}

.ssci-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.ssci-modal-close:hover {
    color: #333;
}

.ssci-modal-body {
    padding: 30px;
}

.ssci-modal-description {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 14px;
}

/* Contact Form Styles */
.ssci-contact-form {
    margin-top: 20px;
}

.ssci-form-group {
    margin-bottom: 20px;
}

.ssci-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.ssci-form-input,
.ssci-form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
}

.ssci-form-input:focus,
.ssci-form-textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.ssci-form-textarea {
    resize: vertical;
    min-height: 120px;
}

.ssci-form-group small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 12px;
}

.ssci-form-feedback {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
    display: none;
}

.ssci-feedback-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.ssci-feedback-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.ssci-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.ssci-modal-actions .ssci-btn {
    width: auto;
    min-width: 120px;
}

/* Mobile Modal */
@media (max-width: 768px) {
    .ssci-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .ssci-modal-body {
        padding: 20px;
    }
    
    .ssci-modal-actions {
        flex-direction: column;
    }
    
    .ssci-modal-actions .ssci-btn {
        width: 100%;
    }
}
