/* Global Styling */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f3f6fb;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

/* Main container styling */
.container {
    display: flex;
    max-width: 1400px; /* Wider container for large screens */
    padding: 20px;
    gap: 30px; /* Space between form and sidebar */
    box-sizing: border-box;
}

/* Sidebar styling */
.sidebar {
    width: 250px;
    background-color: #e8f5f4;
    color: #1a4d4b;
    position: fixed;
    top: 0;
    left: 0; /* Aligns sidebar to the left */
    height: 100vh;
    padding: 20px;
    border-right: 1px solid #b3dfdb; /* Soft teal border on right */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Sidebar icon */
.sidebar-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #009688; /* Teal background */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 20px;
}

/* Card style for client info */
.client-info-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.client-info-item {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

.info-label {
    font-weight: 500;
    color: #1a4d4b;
}

.info-value {
    color: #009688;
    font-weight: 400;
}

/* Form container styling */
.form-container {
    padding: 20px;
    flex: 1;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    margin-left: 270px; /* Space for sidebar */
}

h1 {
    text-align: center;
    color: #1a4d4b;
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Modular Grid System */
.modular-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (min-width: 1400px) {
    .modular-grid {
        grid-template-columns: 1fr 1fr 1fr; /* Three columns on larger screens */
    }
}

.info-section {
    background-color: #f9f9fb;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

    .info-section h2 {
        margin: 0;
        padding: 16px;
        background-color: #009688; /* Teal header */
        color: white;
        font-size: 1.1rem;
        cursor: pointer;
        border-radius: 8px 8px 0 0;
    }

.info-section-content {
    padding: 20px;
    display: none;
}

    .info-section-content.active {
        display: block;
    }

/* Form input styling */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

label {
    font-weight: 500;
    color: #2c3e50;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f4f6f9;
    transition: border-color 0.3s;
}

    input:focus, select:focus {
        border-color: #009688;
        outline: none;
    }

/* Summary Box */
.summary {
    width: 300px;
    border: 1px solid #ddd;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
    height: fit-content;
    font-size: 0.9rem;
    color: #666;
}

    .summary h3 {
        margin-top: 0;
        color: #009688;
        font-size: 1.2rem;
    }



/*Buttons*/
.button-container {
    margin-top: 20px; /* Adds space above buttons */
    text-align: center; /* Centers buttons */
}

button {
    padding: 10px 15px;
    margin: 5px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
}

#confirmButton {
    background-color: #0a770f; /* Green for confirmation  with no changes*/
    color: white;
    border: none;
}

#submitButton {
    background-color: #3498db; /* Blue for submit */
    color: white;
    border: none;
}

    #submitButton:disabled {
        background-color: #ddd; /* Gray out if disabled */
        cursor: not-allowed;
    }

    #confirmButton:disabled {
        background-color: #ddd; /* Gray out if disabled */
        cursor: not-allowed;
    }
/* Responsive Adjustments */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .form-container {
        margin-left: 0;
    }

    .summary {
        width: 100%;
    }
}
