/* Add these to your existing form-styles.css */

/* Page layout */
body {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    text-align: justify;
    text-justify: inter-word;
}

/* Headings */
h1 {
    color: #1e293b;
    font-size: 2rem;
    font-weight: 600;
    margin: 2rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

/* Buttons */
button {
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 1rem;
}

/* Add this to your CSS file */
.button-container {
    display: flex;
    justify-content: center;
    gap: 1rem;  /* This creates space between the buttons */
    margin: 2rem 0;  /* Adds some vertical spacing */
}

button:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button:active {
    transform: translateY(0);
}

#resetButton {
    background-color: #64748b;
}

#resetButton:hover {
    background-color: #475569;
}

iframe {
    display: block;
    margin: 1rem auto;  /* Centers the iframe and adds vertical spacing */
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-top: 1rem;
    width: 800px;
    height: 550px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    body {
        padding: 1rem;
    }

    h1 {
        font-size: 1.5rem;
        margin: 1.5rem 0 1rem;
    }

    button {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
        width: 100%;
        margin-bottom: 0.5rem;
        margin-right: 0;
    }

    iframe {
        width: 100% !important;
        height: 300px !important;
    }
}



/* Form container */
#dataForm {
    max-width: 800px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Collapsible sections - slightly darker */
.form-section {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    background-color: white;  /* Explicit white background */
}

/* Header styling - darker background */
.form-section-header {
    background-color: #edf2f7;  /* Darker than before */
    padding: 1rem 1.5rem;
    cursor: pointer;
    user-select: none;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.form-section-header:hover {
    background-color: #e2e8f0;  /* Darker hover state */
}

.form-section-header:hover {
    background-color: #f1f5f9;
}

.form-section-header h4 {
    margin: 0;
    display: inline;
    color: #334155;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Disclosure triangle styling */
details > summary {
    list-style: none;
}

details > summary::marker,
details > summary::-webkit-details-marker {
    display: none;
}

details > summary::before {
    content: '\25B6';
    display: inline-block;
    margin-right: 0.75rem;
    color: #64748b;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

details[open] > summary::before {
    transform: rotate(90deg);
}

/* Content area styling */
.form-section-content {
    padding: 1.5rem;
    background-color: white;
    border-top: 1px solid #e2e8f0;
}

/* Form controls styling */
label {
    display: block;
    margin-bottom: 0.5rem;
    color: #475569;
    font-weight: 500;
}

select,
input[type="text"],
input[type="number"] {
    box-sizing: border-box;
    width: 100%;
    max-width: 200px;
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: white;
    color: #1e293b;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

select:hover,
input[type="text"]:hover,
input[type="number"]:hover {
    border-color: #94a3b8;
}

select:focus,
input[type="text"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Form field spacing */
.form-section-content > div {
    margin-bottom: 1rem;
}

/* Label styling (if you want to match the existing style) */
label {
    display: block;
    margin-bottom: 0.5rem;
    color: #475569;
    font-weight: 500;
}

/* For input groups that should appear on the same line */
.input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.input-group label {
    margin-bottom: 0;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    select,
    input[type="text"],
    input[type="number"] {
        max-width: 100%;
    }

    .input-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}