/* Services Section Styles */
.website-services-container {
    gap: 1rem;
    padding: 1rem;
    margin: 0 auto;
    max-width: 800px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    justify-items: center;
    justify-content: center;
    width: 100%;
}

.console-services-container {
    gap: 1rem;
    padding: 1rem;
    margin: 0 auto;
    max-width: 800px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    justify-items: stretch;
    width: 100%;
}

.service-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    max-width: 400px;
    width: 100%;
    margin: 0.5rem auto;
}

.service-button, .website-service-button {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--button-text);
    background-color: var(--button-bg);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
    width: 100%;
    padding: 0 1rem;
}

.service-details.active {
    max-height: 1000px;
    opacity: 1;
    padding: 1rem;
}

.select-service-button {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    color: var(--button-text);
    background-color: var(--button-bg);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Modal Styles */
.website-required-details, .it-required-details {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 800px;
    background: var(--section-bg);
    border-radius: 12px;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.website-required-details.visible, .it-required-details.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -54%) scale(0.95);
}

/* Add modal overlay styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2999;
}

/* Ensure modal z-index is higher than overlay */
.website-required-details, .it-required-details {
    z-index: 3000;
}

/* Add transition for modal visibility */
.website-required-details {
    top: 45%;
    bottom: -47%;
    left: 50%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.website-required-details.visible {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Add console modal styling */
.console-required-details {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 600px;
    background: var(--section-bg);
    border-radius: 12px;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.console-required-details.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Console Service Button Styling */
.console-service-button {
    width: 100%;
    min-width: 280px;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--button-text);
    background-color: var(--button-bg);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                background-color 0.3s ease,
                box-shadow 0.3s ease;
    margin: 0.5rem 0;
}

.console-service-button:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.console-service-button.active {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Add consistent service option styling */
.console-service-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    width: 100%;
    margin: 0.5rem auto;
}

/* Ensure consistent button text alignment */
.service-button, 
.website-service-button, 
.console-service-button {
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive Design */
@media (max-width: 768px) {
    .website-services-container {
        grid-template-columns: 1fr;
    }
    
    .service-option {
        margin: 0.25rem 0;
    }
}

/* Update console service details animation */
.console-service-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
    width: 100%;
    padding: 0 1rem;
}

.console-service-details.active {
    max-height: 1000px;
    opacity: 1;
    padding: 1rem;
}

/* Add subtle bounce animation */
@keyframes buttonBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.console-select-service-button {
    transition: all 0.3s ease;
}

.console-select-service-button:hover {
    animation: buttonBounce 0.4s ease;
}

/* Add scrolling to content area */
.required-details-content {
    overflow-y: auto;
    max-height: calc(100% - 60px);
    padding: 1rem 0;
}

/* Make header sticky */
.required-details-header {
    position: sticky;
    top: 0;
    background: var(--section-bg);
    z-index: 1;
    padding-top: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Update template preview grid */
.template-previews {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-height: 40vh;
    overflow-y: auto;
    padding: 1rem 0;
}

/* Add spacing between sections */
.package-customization {
    display: grid;
    gap: 2rem;
    padding: 1rem;
}