/* ==========================================================================
   BASE STYLES
   ========================================================================== */

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Open Sans', sans-serif;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 40px;
}

/* ==========================================================================
   HEADER & LOGO
   ========================================================================== */

.header {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
    margin-top: 0;
    background: white;
    border-bottom: 1px solid #dee2e6;
}

.logoContainer {
    margin-bottom: 20px;
    margin-top: 0;
    padding-top: 20px;
}

.logo {
    max-width: 550px;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.headerActions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    z-index: 10;
}

.socialIcons {
    display: flex;
    gap: 10px;
}

.socialIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #4d6d2a;
    border-radius: 0;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.socialIcon:hover {
    background-color: #3d5622;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.socialIcon svg {
    width: 20px;
    height: 20px;
}

.donateButton {
    display: inline-block;
    padding: 10px 30px;
    background-color: #c41e3a;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 0;
}

.donateButton:hover {
    background-color: #a01828;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.title {
    color: #4d6d2a;
    text-align: center;
    margin: 0 0 30px 0;
    padding: 0;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.formTitle {
    color: #4d6d2a;
    text-align: center;
    margin: 0 0 30px 0;
    padding: 0;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.2rem;
    color: white;
    margin: 10px 0 0 0;
    font-weight: 400;
}

.navbar {
    padding: 0;
    width: 100%;
}

.navList {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.navItem {
    position: relative;
}

.navItem:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 2px;
    background-color: #28a745;
}

.navLink {
    display: block;
    color: black;
    text-decoration: none;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.navLink:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hasDropdown {
    position: relative;
}

.hasDropdown > .navLink::after {
    content: '▼';
    margin-left: 6px;
    font-size: 10px;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    font-size: 14px;
    background-color: white;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    font-weight: 600;
}

.hasDropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdownLink {
    display: block;
    color: black;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    text-transform: uppercase;
}

.dropdown li:last-child .dropdownLink {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.dropdownLink:hover {
    background-color: #f8f9fa;
    color: #4d6d2a;
}

.aztecBar {
    background: url('../images/aztec.png') repeat-x;
    background-size: auto;
    height: 60px;
    width: 100%;
    background-color: #4d6d2a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aztecBarText {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   FORM ELEMENTS
   ========================================================================== */

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fieldGroup {
    display: flex;
    flex-direction: column;
}

.label {
    font-weight: 500;
    margin-bottom: 5px;
    margin-top: 5px;
    color: #555;
    font-size: 0.9rem;
}

.required {
    color: #dc2626;
    margin-left: 3px;
}

.input,
.select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.input:focus,
.select:focus {
    outline: none;
    border-color: #0070f3;
    box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.1);
}

.input:hover,
.select:hover {
    border-color: #c1c8cd;
}

.inputError {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

/* ==========================================================================
   GRID LAYOUTS
   ========================================================================== */

.twoColumnGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.fullWidth {
    grid-column: 1 / -1;
}

.costAnalysisGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.confirmationGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.paymentOptions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.selectionTitle {
    text-align: center;
    color: #4d6d2a;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.selectionButtons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.selectionButton {
    background-color: #4d6d2a;
    color: white;
    padding: 20px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.selectionButton:hover {
    background-color: #3d5721;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(77, 109, 42, 0.3);
}

.selectionButton:active {
    transform: translateY(0);
}

.button {
    background-color: #4d6d2a;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.button:hover {
    background-color: #3d5721;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(77, 109, 42, 0.3);
}

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

.buttonDisabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.buttonDisabled:hover {
    background-color: #9ca3af;
    transform: none;
    box-shadow: none;
}

.buttonSecondary {
    background-color: #6c757d;
}

.buttonSecondary:hover {
    background-color: #545b62;
}

.buttonTertiary {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.buttonTertiary:hover {
    background-color: #e9ecef;
    color: #495057;
}

.addButton {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    margin-top: 24px;
}

.addButton:hover:not(:disabled) {
    background-color: #218838;
}

.addButton:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.removeButton,
.deleteButton {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.2s ease;
    font-weight: 500;
    margin-top: 10px;
}

.removeButton:hover,
.deleteButton:hover {
    background-color: #c82333;
}

.deleteButton:active {
    transform: translateY(1px);
}

.editButton {
    background-color: #28a745;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.editButton:hover {
    background-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    text-decoration: none;
    color: white;
}

.nextButton,
.submitButton {
    align-self: flex-end;
    margin-left: auto;
}

.errorButton {
    padding: 10px 20px;
    background-color: #0070f3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.errorButton:hover {
    background-color: #0060df;
}

/* ==========================================================================
   NAVIGATION & ACTION AREAS
   ========================================================================== */

.navigationButtons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e1e5e9;
}

.navigationButtons button:last-child:not(:first-child) {
    margin-left: auto;
}

.actionButtons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

/* ==========================================================================
   MESSAGES & ALERTS
   ========================================================================== */

.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.messageSuccess,
.successMessage {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.messageError,
.errorMessage {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
    text-align: left;
}

.infoMessage {
    background-color: #f0f9ff;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.paymentRequired {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.paymentRequired h4 {
    color: #856404;
    margin-top: 0;
}

.refundRequired {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.refundRequired h4 {
    color: #0c5460;
    margin-top: 0;
}

.noPaymentRequired {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.noPaymentRequired h4 {
    color: #155724;
    margin-top: 0;
}

/* ==========================================================================
   LOADING & ERROR STATES
   ========================================================================== */

.loadingContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh;
    font-size: 1.2rem;
}

.errorContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 50vh;
    padding: 20px;
    text-align: center;
}

.errorText {
    color: #666;
    margin: 10px 0;
}

/* ==========================================================================
   PARTICIPANTS
   ========================================================================== */

.participantHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.participantCount {
    margin: 0;
    font-weight: 500;
    color: #495057;
}

.participantList,
.participantsList {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.participantCard {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    background-color: #ffffff;
    transition: box-shadow 0.2s ease;
}

.participantCard:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.participantCardHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.participantTitle,
.participantName {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
}

.participantCost {
    background-color: #0070f3;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
}

.participantDetails {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #666;
    flex-direction: column;
    gap: 4px;
}

.participantInfo {
    font-weight: 500;
    color: #495057;
}

.participantContact {
    color: #6c757d;
    font-size: 0.9rem;
}

.emergencyContact {
    color: #6c757d;
    font-size: 0.85rem;
}

.newParticipantBadge {
    background-color: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-left: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   INDIVIDUAL FORM SECTION
   ========================================================================== */

.individualFormSection {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e1e5e9;
}

.individualTitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* ==========================================================================
   CONFIRMATION SECTIONS
   ========================================================================== */

.confirmationText {
    color: #6c757d;
    margin-bottom: 30px;
    text-align: center;
}

.confirmationSection {
    margin-bottom: 40px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #629127;
}

.confirmationSectionTitle {
    margin: 0 0 20px 0;
    color: #629127;
    font-size: 1.3rem;
    font-weight: 600;
}

.confirmationSubTitle {
    margin: 20px 0 15px 0;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.confirmationItem {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.confirmationLabel {
    font-weight: 500;
    color: #495057;
}

.confirmationValue {
    color: #212529;
    font-weight: 400;
}

/* ==========================================================================
   SUCCESS & EDIT PORTALS
   ========================================================================== */

.successHeader {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: #28a745;
    border-radius: 12px;
    border: 2px solid #28a745;
}

.editPortalSection {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 30px 0;
    border: 1px solid #dee2e6;
}

.editPortalSection h2 {
    color: #333;
    margin-bottom: 10px;
}

.editPortalSection p {
    color: #666;
    margin-bottom: 20px;
}

/* ==========================================================================
   PAYMENT SECTIONS
   ========================================================================== */

.paymentAnalysisInfo {
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
}

.paymentAnalysisInfo p {
    margin: 5px 0;
    color: #495057;
}

.paymentOption {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.paymentOption:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.paymentOptionSelected {
    border-color: #007bff !important;
    background-color: #f8f9ff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.paymentOptionHeader {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.paymentOptionHeader input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.paymentOptionHeader h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.paymentOption p {
    margin: 10px 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.paymentBadge {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.selectedPaymentInfo {
    background-color: #f8f9ff;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    border: 1px solid #007bff;
}

.paymentInstructions {
    color: #495057;
}

.paymentInstructions p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.paymentStatusCard,
.nextStepsCard,
.refundStatusCard {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.paymentSuccess {
    color: #28a745;
    font-weight: 600;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.paymentPending {
    color: #fd7e14;
    font-weight: 600;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.paymentInfo {
    color: #6c757d;
    font-weight: 500;
    margin: 0;
}

.refundPending {
    color: #17a2b8;
    font-weight: 600;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

.refundDetails {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-top: 10px;
}

.refundDetails ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.refundDetails li {
    margin: 5px 0;
    color: #495057;
}

.nextStepsList {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.nextStepsList li {
    padding: 8px 0;
    font-size: 1rem;
    line-height: 1.4;
}

/* ==========================================================================
   PRICING & COST SECTIONS
   ========================================================================== */

.pricingRulesBox {
    background-color: #e7f3ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.pricingRulesBox h4 {
    margin: 0 0 10px 0;
    color: #629127;
}

.pricingRulesList {
    margin: 0;
    padding-left: 20px;
}

.pricingRulesList li {
    margin-bottom: 5px;
    color: #495057;
}

.costBreakdown {
    margin-bottom: 20px;
}

.costBreakdown h4 {
    margin: 0 0 15px 0;
    color: #495057;
}

.breakdownItem,
.costItem {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    align-items: center;
}

.breakdownItem:last-child {
    border-bottom: none;
}

.breakdownDescription {
    color: #495057;
}

.breakdownCost {
    color: #212529;
    font-weight: 500;
}

.costIncrease {
    color: #dc3545 !important;
    font-weight: 600;
}

.costDecrease {
    color: #28a745 !important;
    font-weight: 600;
}

.costSame {
    color: #6c757d;
    font-weight: 500;
}

.totalSection {
    border-top: 2px solid #629127;
    padding-top: 15px;
    margin-top: 20px;
}

.totalRow {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.totalLabel {
    font-size: 1.2rem;
    font-weight: 600;
    color: #212529;
}

.totalAmount {
    font-size: 1.5rem;
    font-weight: 700;
}

.paymentNote {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    text-align: center;
}

.paymentNote p {
    margin: 0;
    color: #856404;
    font-size: 0.9rem;
}

/* ==========================================================================
   CONTACT INFO
   ========================================================================== */

.contactInfo {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
}

.contactInfo a {
    color: #4d6d2a;
    text-decoration: none;
}

.contactInfo a:hover {
    text-decoration: underline;
    color: #3d5721;
}

/* ==========================================================================
   SONG FORM TIME SELECTORS
   ========================================================================== */

.timeSelectContainer {
    display: flex;
    gap: 10px;
    align-items: center;
}

.timeSeparator {
    font-weight: 500;
    color: #555;
}

.whiteText {
    color: white;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {

    /* Container and Layout */
    .container {
        padding: 15px;
        margin: 0 10px;
    }

    /* Header */
    .header {
        padding: 20px 15px;
        margin-bottom: 30px;
    }

    .logo {
        max-width: 400px;
        max-height: 120px;
    }

    .title {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    /* Grids */
    .twoColumnGrid,
    .costAnalysisGrid,
    .paymentOptions,
    .confirmationGrid {
        grid-template-columns: 1fr;
    }

    .costAnalysisGrid,
    .paymentOption,
    .paymentRequired,
    .refundRequired,
    .noPaymentRequired {
        padding: 15px;
    }

    /* Form Elements */
    .input,
    .select,
    .button {
        padding: 10px;
    }

    /* Participants */
    .participantHeader {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .participantDetails {
        flex-direction: column;
        gap: 5px;
    }

    .confirmationItem {
        flex-direction: column;
        gap: 5px;
    }

    /* Action Buttons */
    .actionButtons {
        flex-direction: column;
        align-items: center;
    }

    .actionButtons .button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px 10px;
    }

    .logo {
        max-width: 300px;
        max-height: 100px;
    }

    .title {
        font-size: 1.3rem;
    }
}

/* ==========================================================================
   EDIT REGISTRATION SPECIFIC STYLES
   ========================================================================== */

/* Cost Changes Section */
.costChangesHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.costChangesBadge {
    display: flex;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    min-width: 80px;
}

.badgeWarning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.badgeSuccess {
    background-color: #d1edff;
    color: #0c5460;
    border: 1px solid #b3d4fc;
}

.costChangesCard {
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    background: #ffffff;
}

.costIncrease {
    border-color: #f0ad4e;
    background: linear-gradient(145deg, #fff9f0, #ffffff);
}

.costDecrease {
    border-color: #5cb85c;
    background: linear-gradient(145deg, #f0fff0, #ffffff);
}

.costChangesContent {
    margin-bottom: 16px;
}

.costRow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
}

.costRow:last-child {
    border-bottom: none;
}

.costLabel {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #495057;
}

.costIcon {
    font-size: 1.1em;
}

.costValue {
    font-weight: 600;
    color: #212529;
    font-size: 1.05rem;
}

.participantChange {
    margin-left: 8px;
    font-size: 0.9rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.participantIncrease {
    background-color: #d4edda;
    color: #155724;
}

.participantDecrease {
    background-color: #f8d7da;
    color: #721c24;
}

.costDivider {
    height: 2px;
    background: linear-gradient(90deg, #e9ecef, #dee2e6, #e9ecef);
    margin: 16px 0;
    border-radius: 1px;
}

.costTotal {
    background-color: #f8f9fa;
    padding: 16px 12px !important;
    border-radius: 8px;
    margin-top: 8px;
    border: none !important;
}

.costTotalLabel {
    font-size: 1.1rem;
    font-weight: 600;
}

.costTotalValue {
    font-size: 1.25rem;
    font-weight: 700;
    color: #28a745;
}

.costIncrease .costTotalValue {
    color: #dc3545;
}

.costChangesNote {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: #1565c0;
    line-height: 1.4;
}

.noteIcon {
    flex-shrink: 0;
    font-size: 1em;
    margin-top: 1px;
}

/* Edit Button Group */
.editButtonGroup {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding: 24px 0;
    border-top: 1px solid #e9ecef;
    gap: 16px;
}

.cancelButton {
    background-color: #6c757d;
    border: 1px solid #6c757d;
    min-width: 120px;
}

.cancelButton:hover {
    background-color: #545b62;
    border-color: #545b62;
}

.updateButton {
    background-color: #28a745;
    border: 1px solid #28a745;
    min-width: 180px;
    font-weight: 600;
}

.updateButton:hover {
    background-color: #218838;
    border-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.updateButton:disabled {
    background-color: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive adjustments for edit page */
@media (max-width: 768px) {
    .costChangesHeader {
        flex-direction: column;
        align-items: flex-start;
    }

    .costChangesCard {
        padding: 16px;
    }

    .editButtonGroup {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .cancelButton,
    .updateButton {
        width: 100%;
        min-width: auto;
    }
}

/* ==========================================================================
   BEFORE YOU BEGIN SECTION
   ========================================================================== */

.beforeYouBegin {
    background-color: #e8f5e9;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.beforeYouBeginTitle {
    color: #1e7e34;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.beforeYouBeginList {
    margin: 0;
    padding-left: 25px;
    color: #333;
}

.beforeYouBeginList li {
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.beforeYouBeginList li:last-child {
    margin-bottom: 0;
}