/* ==========================================================================
   TENDER FORM COMPONENT STYLES
   ========================================================================== */

/* Page Background - matches Figma #F8F8F8 */
body {
    background: var(--gray-50);
}

/* Page Title - matches Figma specifications */
.page-title {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 40px;
    line-height: 50px;
    letter-spacing: -0.02em;
    color: #244149;
    text-align: center;
    margin-bottom: 60px;
    margin-top: 40px;
}

/* Form Section - matches Figma container dimensions (larger and more spacious) */
.form-section {
    background: var(--white);
    border-radius: 10px;
    padding: 60px;
    /* Increased padding for more spacious feel */
    margin-bottom: 40px;
    /* Increased margin between sections */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    /* Increased width to match Figma */
    margin-left: auto;
    margin-right: auto;
    position: relative;
    min-height: 400px;
    /* Ensure minimum height for spacious feel */
}

/* Section Header - matches Figma layout with more spacing */
.section-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    /* Reduced margin for better spacing */
}

/* Section Number - matches Figma dimensions and styling */
.section-number {
    width: 48.82px;
    height: 24px;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-primary);
    font-weight: 500;
    font-size: 14px;
    line-height: 19px;
    color: var(--secondary-color);
    margin-right: 30px;
    /* Increased margin for better spacing */
}

/* Section Title - matches Figma typography */
.section-title {
    font-family: var(--font-family-secondary);
    font-weight: 600;
    font-size: 18px;
    line-height: 22px;
    letter-spacing: -0.02em;
    color: var(--primary-color);
    margin-top: 1px;
    margin-bottom: 0;
    /* Override any inherited margin-bottom */
}

/* Form Row - matches Figma grid layout with more spacing */
.form-row {
    display: grid;
    grid-template-columns: 500px 500px;
    /* Increased column widths */
    gap: 20px;
    /* Increased gap between columns */
    margin-bottom: 10px;
    /* Increased margin between rows */
}

.form-group {
    margin-bottom: 10px;
    /* Increased margin between form groups */
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Form Label - matches Figma typography */
.form-label {
    display: block;
    font-family: var(--font-family-primary);
    font-weight: 400;
    font-size: 14px;
    line-height: 19px;
    color: var(--primary-color-alt);
    margin-bottom: 8px;
}

/* Form Input - matches Figma specifications */
.form-input {
    width: 100%;
    height: 44px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    padding: 0 clamp(12px, 3vw, 16px);
    font-family: var(--font-family-primary);
    font-size: clamp(13px, 2.5vw, 14px);
    color: var(--black);
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(113, 171, 144, 0.1);
}

.form-input::placeholder {
    color: var(--black);
}

/* Form Input Validation States */

/* Override browser's validation styling */
.form-input:valid {
    border-color: #E4E4E4 !important;
    background: #F8F8F8 !important;
}

.form-input:valid:focus {
    border-color: #71AB90 !important;
    background: #FFF !important;
}

/* Override browser's invalid validation styling for select fields */
.form-input:invalid {
    border-color: #E4E4E4 !important;
    background: #F8F8F8 !important;
}

.form-input:invalid:focus {
    border-color: #71AB90 !important;
    background: #FFF !important;
}

.form-input.input--error {
    border-color: var(--error-color);
    background: var(--error-light);
}

/* Form Error and Success Messages */
.form-error-message {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 4px;
    font-family: var(--font-family-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-error-message::before {
    content: "⚠";
    font-size: 12px;
}

.form-success-message {
    color: var(--success-color);
    font-size: 12px;
    margin-top: 4px;
    font-family: var(--font-family-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-success-message::before {
    content: "✓";
    font-size: 12px;
}

/* Form Message Types */
.form-error-message.mb-3,
.form-success-message.mb-3 {
    margin-bottom: 1rem;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
}

.form-error-message.mb-3 {
    background-color: var(--error-light);
    color: var(--error-text);
    border: 1px solid var(--error-border);
}

.form-success-message.mb-3 {
    background-color: var(--success-light);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

/* Date Range Container - matches Figma layout */
.date-range-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.date-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}


/* Radio Groups - using exact working styles from styles.css */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 100px;
    position: relative;
}

.radio-option input[type="radio"] {
    appearance: none;
    background-image: url('/static/icons/checkbox-unchecked.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    cursor: pointer;
    height: 17px;
    left: 8px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    z-index: 10;
    transition: all 0.2s ease;
}

.radio-option input[type="radio"]:checked {
    background-image: url('/static/icons/checkbox-checked.svg');
}

.radio-option input[type="radio"]:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Remove the old text checkmark */
.radio-option input[type="radio"]:checked:after {
    display: none;
}

.radio-label {
    align-items: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    font-family: var(--font-family-primary);
    font-size: 14px;
    font-weight: 500;
    height: 44px;
    justify-content: center;
    padding: 0;
    position: relative;
    text-align: center;
    transition: all 0.2s ease;
    width: 100px;
}

.radio-option input[type="radio"]:checked+.radio-label {
    background: var(--white);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Checkbox Groups - using custom SVG icons */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-label {
    font-family: var(--font-family-primary);
    font-weight: 400;
    font-size: 14px;
    line-height: 19px;
    color: var(--black);
    cursor: pointer;
    user-select: none;
}

/* All checkbox inputs - including certificate checkboxes */
input[type="checkbox"] {
    appearance: none;
    width: 17px;
    height: 17px;
    margin: 0;
    cursor: pointer;
    background-image: url('/static/icons/checkbox-unchecked.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.2s ease;
}

input[type="checkbox"]:checked {
    background-image: url('/static/icons/checkbox-checked.svg');
}

input[type="checkbox"]:hover {
    transform: scale(1.1);
}

/* Specific styling for certificate checkboxes */
.certificate-item input[type="checkbox"] {
    position: absolute;
    top: 10px;
    left: 10px;
    margin: 0;
    width: 17px;
    height: 17px;
    z-index: 10;
    /* Remove conflicting properties */
    border-radius: 0;
    accent-color: transparent;
}

/* Divider - matches Figma styling */
.divider {
    height: 1px;
    background: var(--gray-200);
    margin: 30px 0;
    width: 100%;
}

/* Certificates Grid - matches Figma specifications exactly */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 210px);
    gap: 20px;
    margin-top: 20px;
}

.certificate-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 210px;
    height: 100px;
    position: relative;
}

.certificate-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.certificate-item.selected {
    border-color: var(--success-color);
    /* Green border for selected items like Global G.A.P */
    background: var(--white);
}

/* Certificate checkbox positioning - top-left corner */

/* Logo positioning - top-right corner, small icon */
.certificate-logo {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    /* Smaller size to match Figma */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: var(--white);
    overflow: hidden;
}

.certificate-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Better for logos */
}

.certificate-logo-text {
    font-family: var(--font-family-primary);
    font-weight: 600;
    font-size: 12px;
    /* Smaller text for logo placeholders */
    color: var(--primary-color);
}

/* Title positioning - bottom-left, under the radio button */
.certificate-name {
    position: absolute;
    bottom: 15px;
    left: 10px;
    font-family: var(--font-family-primary);
    font-size: 14px;
    line-height: 19px;
    color: var(--black);
    max-width: 160px;
    /* Slightly wider to accommodate longer names */
    word-wrap: break-word;
    font-weight: 400;
}

/* Submit Section - matches Figma positioning but same width as other sections */
.submit-section {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 196px;
    margin-left: auto;
    margin-right: auto;
    background: var(--white);
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.consents {
    position: relative;
    height: 100%;
    padding: 43px 200px 0 40px;
    /* More right padding to make room for submit button */
}

.consent-group {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
}

/* First consent checkbox - Rectangle 211 */
.consent-group:first-child {
    position: relative;
    left: 0;
    top: 0;
}

.consent-group:first-child input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    appearance: none;
    background: #F8F8F8;
    border: 1px solid #E4E4E4;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
}

.consent-group:first-child input[type="checkbox"]:checked {
    background: #F8F8F8;
    border-color: #E4E4E4;
}

.consent-group:first-child input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #71AB90;
    font-size: 16px;
    font-weight: bold;
}


.consent-group:first-child input[type="checkbox"]:hover {
    border-color: #71AB90;
    background: #FFFFFF;
}

.consent-group:first-child label {
    position: relative;
    width: 100%;
    max-width: 800px;
    /* Increased from 574px to use more space */
    height: auto;
    left: 0;
    top: 0;
    font-family: 'Manrope', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #000000;
    margin: 0;
    flex: 1;
    cursor: pointer;
    user-select: none;
}

/* Second consent checkbox - Rectangle 212 */
.consent-group:last-child {
    position: relative;
    left: 0;
    top: 0;
    margin-bottom: 0;
}

.consent-group:last-child input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    appearance: none;
    background: #F8F8F8;
    border: 1px solid #E4E4E4;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
}

.consent-group:last-child input[type="checkbox"]:checked {
    background: #F8F8F8;
    border-color: #E4E4E4;
}

.consent-group:last-child input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #71AB90;
    font-size: 16px;
    font-weight: bold;
}


.consent-group:last-child input[type="checkbox"]:hover {
    border-color: #71AB90;
    background: #FFFFFF;
}

.consent-group:last-child label {
    position: relative;
    width: 100%;
    max-width: 800px;
    /* Increased from 586px to use more space */
    height: auto;
    left: 0;
    top: 0;
    font-family: 'Manrope', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #000000;
    margin: 0;
    flex: 1;
    cursor: pointer;
    user-select: none;
}

/* Submit Button - positioned on the right side */
.submit-btn {
    position: absolute;
    width: 127px;
    height: 44px;
    right: 40px;
    top: 43px;
    background: var(--primary-color);
    border: none;
    border-radius: 4px;
    color: #FFFFFF;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 19px;
    padding: 12px 16px 13px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Secondary Button - matches Figma styling */
.secondary-btn {
    background: var(--white);
    color: #F36669;
    border: 2px solid #F36669;
    border-radius: 4px;
    padding: 10px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 142px;
    height: 28px;
}

.secondary-btn:hover {
    background: var(--accent-color);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Products Container */
.products-container {
    margin-bottom: 30px;
}

.product-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.remove-product-btn {
    background: var(--white);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    padding: 10px;
    font-family: var(--font-family-primary);
    font-weight: 500;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: 28px;
    padding-top: 6px;
}

.remove-product-btn:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.add-product-btn {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 0;
    width: 142px;
    height: 28px;
    background: var(--white);
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius-sm);
    color: var(--accent-color);
    font-family: var(--font-family-primary);
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.add-product-btn:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Messages */
.messages {
    margin-bottom: 30px;
}

.message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-family: var(--font-family-primary);
    font-size: 14px;
}

.message-success {
    background-color: var(--success-light);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

.message-error {
    background-color: var(--error-light);
    color: var(--error-text);
    border: 1px solid var(--error-border);
}

.message-warning {
    background-color: var(--warning-light);
    color: var(--warning-text);
    border: 1px solid var(--warning-border);
}

.message-info {
    background-color: var(--info-light);
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

/* Quantity Input Container - matches the image design */
.quantity-input-container {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #E4E4E4;
    border-radius: 6px;
    background: #F8F8F8;
    height: 44px;
    overflow: hidden;
}

.quantity-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 16px;
    height: 100%;
    border-radius: 0;
    border-right: 1px solid #E4E4E4;
}

.quantity-input:focus {
    outline: none;
    background: #FFF;
    box-shadow: none;
}

.quantity-input-container .unit-select {
    width: 120px !important;
    border: none !important;
    background: transparent !important;
    padding: 0 12px !important;
    height: 100% !important;
    border-radius: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: transparent !important;
    padding-right: 32px !important;
    cursor: pointer !important;
}

.unit-select:focus {
    outline: none;
    background: #FFF;
    box-shadow: none;
}

.quantity-input-container::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 8px;
    background-image: url("/static/icons/vector7_icon.svg");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 10;
}

.quantity-input-container:focus-within {
    border-color: #71AB90;
    background: #FFF;
    box-shadow: 0 0 0 3px rgba(113, 171, 144, 0.1);
}

/* Location Input Container */
.location-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.location-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: var(--gray-50);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.location-btn:hover {
    background: var(--white);
}

.location-icon {
    width: 14px;
    height: 14px;
    color: var(--primary-color);
}

/* Combobox Input */
.combobox-input {
    position: relative;
}

.combobox-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid #E4E4E4;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.combobox-dropdown.active {
    display: block;
}

.combobox-list {
    max-height: 150px;
    overflow-y: auto;
}

.combobox-item {
    padding: 8px 12px;
    cursor: pointer;
    font-family: var(--font-family-primary);
    font-size: 14px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--gray-200);
    transition: background-color 0.2s ease;
}

.combobox-item:hover {
    background: var(--gray-50);
}

.combobox-item.selected {
    background: var(--selected-bg);
    color: var(--primary-color);
}

.combobox-add-new {
    padding: 8px 12px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.add-new-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-family: var(--font-family-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.add-new-btn:hover {
    color: var(--accent-dark);
}

/* Error Message */
.error-message {
    color: var(--error-text);
    font-size: 14px;
    margin-top: 8px;
    font-family: var(--font-family-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message::before {
    content: "⚠";
    font-size: 16px;
}

/* Products Section Error - special styling for non-field errors */
.products-section-error {
    margin-bottom: 20px;
    padding: 12px 16px;
    background-color: var(--error-light);
    border: 1px solid var(--error-border);
    border-radius: 6px;
    color: var(--error-text);
    font-size: 14px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .form-section {
        max-width: 95vw;
        padding: 30px 20px;
    }

    .date-range-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .certificates-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 40px;
    }

    .form-section {
        padding: 20px 15px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }


    .section-number {
        margin-right: 0;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .certificate-item {
        width: 100%;
        height: auto;
        min-height: 100px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
        line-height: 36px;
        margin-bottom: 30px;
    }

    .form-section {
        padding: 15px 10px;
    }


    .radio-group {
        flex-direction: column;
        gap: 15px;
    }

    .submit-section {
        align-items: center;
    }

    .submit-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Submit Button - matches Figma Main-CTA-dark exactly */
.submit-btn {
    position: absolute;
    width: 127px;
    height: 44px;
    right: 40px;
    top: 43px;
    background: var(--primary-color);
    border: none;
    border-radius: 4px;
    color: #FFFFFF;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 19px;
    padding: 12px 16px 13px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Checkbox hover effects */
.consent-group:first-child input[type="checkbox"]:hover,
.consent-group:last-child input[type="checkbox"]:hover {
    border-color: #244149;
    cursor: pointer;
}

/* Responsive Design for Submit Section */
@media (max-width: 1024px) {
    .submit-section {
        width: 95vw;
        max-width: none;
        height: auto;
        min-height: 196px;
    }

    .consents {
        padding: 43px 180px 43px 40px;
        /* Reduced right padding for smaller screens */
    }

    .consent-group:first-child label,
    .consent-group:last-child label {
        max-width: 600px;
        /* Reduced max-width for smaller screens */
    }

    .submit-btn {
        right: 30px;
        /* Adjusted position for smaller screens */
    }
}

@media (max-width: 768px) {
    .submit-section {
        width: 100%;
        max-width: 1200px;
        /* Keep same width as other sections */
        padding: 20px 15px;
        height: auto;
        min-height: 196px;
    }

    .consents {
        padding: 30px 20px 30px 20px;
        /* Removed right padding since button is below */
        height: auto;
        /* Allow height to adjust based on content */
        min-height: 120px;
        /* Minimum height to accommodate content */
    }

    .consent-group:first-child label,
    .consent-group:last-child label {
        max-width: 100%;
        /* Full width on mobile */
        font-size: 11px;
        /* Slightly smaller font for mobile */
        line-height: 15px;
    }

    .submit-btn {
        position: relative;
        /* Change from absolute to relative */
        right: auto;
        top: auto;
        width: 100%;
        /* Full width on mobile */
        max-width: 300px;
        /* But not too wide */
        height: 44px;
        /* Keep original height */
        font-size: 14px;
        /* Keep original font size */
        margin: 20px auto 0 auto;
        /* Center horizontally with top margin */
        display: block;
    }
}

@media (max-width: 480px) {
    .submit-section {
        width: 100%;
        max-width: 1200px;
        /* Keep same width as other sections */
        padding: 15px 10px;
        height: auto;
        min-height: 196px;
    }

    .consents {
        padding: 25px 15px 25px 15px;
        /* Removed right padding */
        height: auto;
        /* Allow height to adjust */
        min-height: 100px;
        /* Smaller minimum height for very small screens */
    }

    .consent-group {
        margin-bottom: 20px;
        /* Reduced spacing between groups */
    }

    .consent-group:first-child label,
    .consent-group:last-child label {
        font-size: 10px;
        /* Even smaller font for very small screens */
        line-height: 14px;
    }

    .submit-btn {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        max-width: 280px;
        height: 42px;
        font-size: 13px;
        padding: 10px 16px;
        margin: 15px auto 0 auto;
        display: block;
    }
}
