/* General Image Styling */
figure.image img {
    width: 100%;
}

/* Center Align Form and Limit Width */
#crm-main-content-wrapper {
    margin: 0 auto;
    max-width: 900px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Input Field Styling */
.crm-form-text, .crm-select2 {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

/* Input Focus Highlight */
.crm-form-text:focus, .crm-select2:focus {
    border-color: #0073e6;
    outline: none;
    box-shadow: 0 0 3px rgba(0, 115, 230, 0.5);
}

/* Improve Label Styling */
label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #333;
}

/* Highlight Required Fields */
.crm-marker {
    color: red;
    margin-left: 5px;
    font-size: 14px;
}

/* Section Styling */
fieldset {
    border: 1px solid #ddd;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 4px;
}

/* Section Headers */
legend {
    font-size: 18px;
    font-weight: bold;
    color: #444;
    padding: 0 10px;
}

/* Submit Button Styling */
.crm-form-submit {
    background-color: #0073e6;
    color: white;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    display: inline-block;
}

/* Submit Button Hover */
.crm-form-submit:hover {
    background-color: #005bb5;
}

/* Donation Buttons Styling */
.content .price-set-row {
    margin: 10px auto;
    max-width: 420px;
    background-color: transparent;
}

/* Default State: Light Gray Background */
.content .price-set-row label {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #aaa; /* Default light gray */
    color: white;
    border-radius: 5px;
    cursor: pointer;
    box-sizing: border-box;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
}

/* Button Hover State */
.content .price-set-row label:hover {
    background-color: #d47474; /* Slightly darker red on hover */
}

/* Hide Radio Inputs */
.content .price-set-row input[type="radio"] {
    display: none;
}

/* Selected State: Dark Red Background with White Text */
.content .price-set-row input[type="radio"]:checked + label {
    background-color: #8b1919; /* Darker red when selected */
    color: white; /* Ensure text is white for better visibility */
    border: 2px solid white;
}

/* Ensure spans inside labels are also white */
.content .price-set-row label span {
    color: inherit;
}

/* Donation Amount Label on New Line */
.contribution_amount-content label:first-of-type {
    display: block;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

/* Footer Text Styling */
#footer_text {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    #crm-main-content-wrapper {
        padding: 10px;
    }

    .content .price-set-row {
        max-width: 100%;
    }

    .crm-form-text, .crm-select2 {
        font-size: 14px;
    }

    .crm-form-submit {
        font-size: 14px;
        padding: 8px 15px;
    }
}

/* Intro Image Styling */
#intro_text figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}


#crm-container.crm-public .price-set-row .highlight .crm-price-amount-label {
    color: white;
}

#crm-container.crm-public .price-set-row .highlight .crm-price-amount-amount {
    color: white;
}


/* Hide the original radio buttons */
.soft_credit_type_id-section .content input[type="radio"] {
    display: none;
}

/* Style the labels as buttons */
.soft_credit_type_id-section .content label {
    display: inline-block;
    padding: 10px 20px;
    background-color: #aaa; /* Default light gray */
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-right: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover effect for the buttons */
.soft_credit_type_id-section .content label:hover {
    background-color: #888;
}

/* Styling for the selected button */
.soft_credit_type_id-section .content input[type="radio"]:checked + label {
    background-color: #8b1919; /* Dark red when selected */
    color: white;
    border: 2px solid white;
}

/* Style the 'Clear' link */
.soft_credit_type_id-section .content .crm-clear-link {
    color: #8b1919;
    font-weight: bold;
    text-decoration: none;
    padding: 10px;
    margin-left: 10px;
}

/* Hover effect for the 'Clear' link */
.soft_credit_type_id-section .content .crm-clear-link:hover {
    text-decoration: underline;
}

/* Description styling */
.soft_credit_type_id-section .content .description {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}


/* Hide the original radio buttons */
.payment_options-group .content input[type="radio"] {
    display: none;
}

/* Style the labels as buttons */
.payment_options-group .content label {
    display: inline-block;
    padding: 10px 20px;
    background-color: #aaa; /* Default light gray */
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-right: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover effect for the buttons */
.payment_options-group .content label:hover {
    background-color: #888; /* Slightly darker gray on hover */
}

/* Style the selected button */
.payment_options-group .content input[type="radio"]:checked + label {
    background-color: #8b1919; /* Dark red when selected */
    color: white;
    border: 2px solid white;
}

/* Ensure spacing and alignment for the fieldset */
.payment_options-group {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

/* Style the legend */
.payment_options-group legend {
    font-size: 18px;
    font-weight: bold;
    color: #444;
    padding: 0 10px;
}

/* Clear floats for consistent layout */
.payment_options-group .clear {
    clear: both;
}

/* Add responsiveness for smaller screens */
@media (max-width: 768px) {
    .payment_options-group .content label {
        display: block;
        margin-bottom: 10px; /* Add spacing between buttons */
    }
}


/* Style the fieldset container */
.custom_post_profile-group fieldset {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

/* Style the legend */
.custom_post_profile-group fieldset legend {
    font-size: 18px;
    font-weight: bold;
    color: #444;
    padding: 0 10px;
}

/* Hide the original radio buttons */
.custom_post_profile-group .crm-multiple-checkbox-radio-options input[type="radio"] {
    display: none;
}

/* Style the labels as buttons */
.custom_post_profile-group .crm-multiple-checkbox-radio-options label {
    display: inline-block;
    width: 150px; /* Ensures enough width for the text */
    text-align: center; /* Centers the text */
    padding: 10px 20px;
    margin: 5px;
    background-color: #aaa; /* Default gray */
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
}

/* Hover effect for radio button labels */
.custom_post_profile-group .crm-multiple-checkbox-radio-options label:hover {
    background-color: #888; /* Slightly darker gray */
}

/* Selected state */
.custom_post_profile-group .crm-multiple-checkbox-radio-options input[type="radio"]:checked + label {
    background-color: #8b1919; /* Dark red */
    color: white;
    border: 2px solid white; /* Add a white border for emphasis */
}

/* Define the custom property for button width */
.crm-container .crm-multiple-checkbox-radio-options {
    --checkbox-width: 10em; /* You can easily adjust this value */
}

/* Hide the original radio buttons */
.crm-container .crm-multiple-checkbox-radio-options input[type="radio"] {
    display: none;
}

/* Style the labels as buttons */
.crm-container .crm-multiple-checkbox-radio-options label {
    display: inline-block;
    width: var(--checkbox-width); /* Use the custom property for width */
    text-align: center;
    padding: 10px;
    margin: 5px;
    background-color: #aaa; /* Default gray */
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
}

/* Hover effect for radio button labels */
.crm-container .crm-multiple-checkbox-radio-options label:hover {
    background-color: #888; /* Slightly darker gray */
}

/* Selected state */
.crm-container .crm-multiple-checkbox-radio-options input[type="radio"]:checked + label {
    background-color: #8b1919; /* Dark red */
    color: white;
    border: 2px solid white; /* Add a white border for emphasis */
}

/* Adjust width and alignment for small screens */
@media (max-width: 768px) {
    .crm-container .crm-multiple-checkbox-radio-options label {
        width: 100%; /* Full width on smaller screens */
    }
}


/* Adjust width and alignment for small screens */
@media (max-width: 768px) {
    .custom_post_profile-group .crm-multiple-checkbox-radio-options label {
        width: 100%; /* Full width on smaller screens */
    }
}

/* Style the input field for the donor recognition name */
.custom_post_profile-group .crm-form-text {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Highlight the input field on focus */
.custom_post_profile-group .crm-form-text:focus {
    border-color: #8b1919; /* Match the red theme */
    box-shadow: 0 0 3px rgba(139, 25, 25, 0.5);
    outline: none;
}

/* Description styling */
.custom_post_profile-group .description {
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}

/* Label styling */
.custom_post_profile-group .label label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #333;
}

/* Clear float fix */
.custom_post_profile-group .clear {
    clear: both;
}

#crm-container.crm-public .price-set-row .crm-price-amount-amount {
    top: 5px;
}


/* Stack checkboxes vertically */
.crm-section .crm-multiple-checkbox-radio-options .crm-option-label-pair {
    display: block; /* Ensures vertical stacking */
    margin-bottom: 10px; /* Adds spacing between items */
}

/* Hide the original checkbox */
.crm-section .crm-multiple-checkbox-radio-options input[type="checkbox"] {
    display: none;
}

/* Style the labels as buttons */
.crm-section .crm-multiple-checkbox-radio-options label {
    display: block; /* Ensures the entire label is clickable */
    width: 100%; /* Full width for consistency */
    padding: 10px;
    background-color: #aaa; /* Default gray */
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover effect for the label */
.crm-section .crm-multiple-checkbox-radio-options label:hover {
    background-color: #888; /* Slightly darker gray */
}

/* Style for selected (checked) labels */
.crm-section .crm-multiple-checkbox-radio-options input[type="checkbox"]:checked + label {
    background-color: #8b1919; /* Dark red for selected state */
    color: white;
    border: 2px solid white; /* Optional: Add a border to emphasize selection */
}

/* Target only the specific section's checkbox label pairs for full width */
#editrow-custom_60 .crm-multiple-checkbox-radio-options .crm-option-label-pair {
    width: 100%; /* Ensure vertical stacking */
}
