/* css/add-business.css */

/* Optional: Import base variables/reset from index.css if desired */
/* @import url('./index.css'); */
/* OR Define variables needed for this page specifically */
:root {
    --yelp-red: #d32323;
    --yelp-dark: #333;
    --yelp-light: #f5f5f5;
    --border-light: #eee;
    --border-medium: #ccc;
    --success-green: #2e7d32;
    --success-light: #e8f5e9;
    --error-red: #d32f2f;
    --error-light: #ffebee;
}

/* --- Page Container --- */
.add-business-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px 4%; /* Use percentage for padding */
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.add-business-container h1 {
    text-align: center;
    color: var(--yelp-red);
    margin-bottom: 15px;
    font-size: 1.8rem;
}
.add-business-container > p {
    text-align: center;
    color: #555;
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.5;
}
.add-business-container > p em {
    font-size: 0.95rem;
    color: #777;
    display: block; /* Put on own line */
    margin-top: 5px;
}
.add-business-container > p a {
    color: var(--yelp-red);
    font-weight: bold;
    text-decoration: none;
}
.add-business-container > p a:hover {
    text-decoration: underline;
}


/* --- Form Styling --- */
.styled-form {
    margin-top: 30px;
}

.form-section {
    margin-bottom: 35px; /* Increased spacing */
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-light);
}
.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    font-size: 1.4rem;
    color: var(--yelp-dark);
    margin-bottom: 25px; /* Increased spacing */
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px dashed var(--border-medium); /* Dashed underline */
    padding-bottom: 10px;
}
.form-section h2 i {
    color: var(--yelp-red);
    font-size: 1.2em; /* Slightly larger icon */
}

/* Form Groups and Controls */
.form-group {
    margin-bottom: 20px; /* Space between form groups */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #444; /* Slightly softer black */
    font-size: 1rem;
}

.required {
    color: var(--error-red);
    margin-left: 3px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 12px 15px; /* More padding */
    border: 1px solid var(--border-medium);
    border-radius: 5px; /* Slightly more rounded */
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--yelp-red);
    box-shadow: 0 0 0 3px rgba(211, 35, 35, 0.15); /* Softer focus ring */
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    appearance: none; /* Remove default arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E"); /* Custom arrow */
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px 12px;
    padding-right: 40px; /* Make space for arrow */
}

/* 'Other' text input */
.other-input {
    margin-top: 10px;
}

/* File input styling (basic) */
.form-control-file {
    display: block; /* Make it block level */
    font-size: 0.95rem;
    margin-top: 5px;
    color: #555;
}
/* You might want more advanced custom styling for file inputs */

#business-profile-image-preview {
    display: none; /* Hidden initially */
    max-width: 120px; /* Preview size */
    max-height: 120px;
    border-radius: 6px; /* Slightly rounded preview */
    border: 1px solid var(--border-medium);
    margin-top: 10px;
    object-fit: cover;
}

/* Helper text */
.form-group small {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #777;
}

/* --- Submission Area --- */
.form-submission-area {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}
.form-submission-area > p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}
.form-submission-area .btn-large {
    padding: 14px 35px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Status/Error Messages */
#add-business-status,
#add-business-error {
    /* Define base styles or rely on index.css via @import */
    padding: 10px 15px;
    margin: 15px auto 0 auto; /* Center messages */
    border-radius: 4px;
    font-size: 0.95rem;
    text-align: center;
    border: 1px solid transparent;
    max-width: 90%; /* Prevent full width */
}
#add-business-status:empty,
#add-business-error:empty {
    display: none;
}
#add-business-status.submitting {
    color: #555; background-color: #f0f0f0; border-color: var(--border-medium);
}
#add-business-status.success {
    color: var(--success-green); background-color: var(--success-light); border-color: var(--success-green);
}
#add-business-error {
    color: var(--error-red); background-color: var(--error-light); border-color: var(--error-red);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .add-business-container h1 { font-size: 1.6rem; }
    .add-business-container > p { font-size: 1rem; }
    .form-section h2 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
     .form-control, select.form-control, textarea.form-control {
         padding: 10px 12px; /* Slightly less padding */
         font-size: 0.95rem;
     }
      select.form-control {
          background-position: right 10px center;
          padding-right: 30px;
      }
      .form-submission-area .btn-large {
         padding: 12px 25px;
         font-size: 1rem;
     }
}

/* FILE: add-business.css (Add these styles) */

/* ... (keep existing styles) ... */


/* --- Selected Plan Display Box --- */
.plan-display-box {
    background-color: #f0f8ff; /* Light AliceBlue */
    border: 1px solid #b0e0e6; /* PowderBlue */
    border-left: 5px solid var(--yelp-red); /* Use theme color for emphasis */
    padding: 15px 20px;
    margin: 25px 0; /* Space above and below */
    border-radius: 5px;
    font-size: 1.05rem;
    color: #333;
    text-align: center;
}

.plan-display-box strong {
    color: var(--yelp-red);
    text-transform: capitalize; /* Capitalize plan name */
}

/* ... (rest of existing styles) ... */

/* FILE: /Styles/add-business.css */

/* ... (Keep all existing styles) ... */


/* --- Payment Overlay Styles --- */
.payment-overlay {
    position: fixed; /* Sit on top of everything */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Dark semi-transparent background */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's above other content */
    padding: 15px; /* Padding for small screens */
    box-sizing: border-box;
}

.overlay-content {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 450px; /* Limit width */
    width: 90%; /* Responsive width */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative; /* For positioning the close button */
    animation: fadeInOverlay 0.3s ease-out; /* Simple fade-in animation */
}

.overlay-content h2 {
    color: var(--success-green, #28a745); /* Use success color */
    margin-top: 0;
    margin-bottom: 15px;
}

.overlay-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

#overlayPlanInfo {
    font-weight: bold;
    color: var(--yelp-red, #d32323);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

#payNowButton {
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 15px;
    /* Inherits .btn styles, ensure .btn-large is defined if used */
}
#payNowButton i {
    margin-right: 8px;
}

.overlay-note {
    font-size: 0.85rem;
    color: #777;
    margin-top: 20px;
    margin-bottom: 0;
}

.close-overlay-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.close-overlay-button:hover {
    color: #333;
}

/* Fade-in Animation */
@keyframes fadeInOverlay {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

#auth-container {
    /* background-color: #D32323; */
    color: #0d0c0c;
    position: static;
    transform: none;
    width: 100%;
    justify-content: flex-start;
    margin-bottom: 10px;
    order: 2; /* Auth below logo */
    flex-wrap: wrap;
    gap: 10px;   
}

/* FILE: /Styles/add-business.css */

/* ... (Keep all existing styles) ... */


/* --- General Modal Styles (Can be reused) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Slightly darker overlay */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1050; /* Higher than payment overlay if needed */
    padding: 15px;
    box-sizing: border-box;
    animation: fadeInOverlay 0.3s ease-out; /* Reuse animation */
}

.modal-content {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 8px;
    text-align: left; /* Align content left */
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.modal-content h2 {
    text-align: center;
    color: var(--yelp-red);
    margin-top: 0;
    margin-bottom: 20px;
}

.close-modal-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.close-modal-button:hover {
    color: #333;
}

/* --- Renew/Upgrade Modal Specific Styles --- */
#renewUpgradeModal .modal-content {
    max-width: 550px; /* Slightly wider if needed */
}

.current-plan-info {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 5px;
    font-size: 0.95rem;
    color: #495057;
}
.current-plan-info p {
    margin: 5px 0;
}
.current-plan-info strong {
    color: var(--yelp-dark);
}
.plan-expired {
    color: var(--error-red);
    font-weight: bold;
}
.plan-active {
    color: var(--success-green);
    font-weight: bold;
}

#renew-upgrade-form .form-group {
    margin-bottom: 20px;
}

#renew-upgrade-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}
#renew-upgrade-form select.form-control {
    /* Inherits form-control styles, can add specifics if needed */
    width: 100%;
}

#submit-renew-upgrade {
    width: 100%; /* Make button full width */
    padding: 12px;
    font-size: 1.05rem;
    margin-top: 10px;
}

.modal-note {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    margin-top: 20px;
}

/* --- Status/Error Messages in Modal --- */
#renew-status, #renew-error {
    padding: 10px 15px;
    margin-top: 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid transparent;
}
#renew-status:empty, #renew-error:empty { display: none; }
#renew-status.success { color: var(--success-green); background-color: var(--success-light); border-color: var(--success-green); }
#renew-error { color: var(--error-red); background-color: var(--error-light); border-color: var(--error-red); }


/* --- Style for Edit/Renew Button Container --- */
#edit-renew-options .btn-secondary { /* Style the renew button differently */
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}
#edit-renew-options .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

#edit-renew-options > p:first-of-type { /* Style the introductory text */
    margin-bottom: 15px;
    font-size: 1rem;
    color: #555;
}
#edit-status, #edit-error {
    /* Reuse styles from add-business status/error */
    padding: 10px 15px;
    margin: 15px auto 0 auto;
    border-radius: 4px;
    font-size: 0.95rem;
    text-align: center;
    border: 1px solid transparent;
    max-width: 90%;
}
#edit-status:empty, #edit-error:empty { display: none; }
#edit-status.success { color: var(--success-green); background-color: var(--success-light); border-color: var(--success-green); }
#edit-error { color: var(--error-red); background-color: var(--error-light); border-color: var(--error-red); }

/* In /Styles/add-business.css */

/* ... (existing styles) ... */

/* Small hint text for payment number input */
#payment-number-hint {
    font-size: 0.85rem; /* Adjust as needed */
    color: #555; /* Softer color */
    display: block; /* Ensure it takes its own line */
    margin-top: 5px;
}

/* You can add more specific styles if needed */

/* /Styles/add-business.css */

/* ... (your existing styles) ... */

.field-recommendation-note {
    display: block; /* Take its own line */
    margin-top: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    background-color: #e6f4ff; /* Light blue background */
    border-left: 4px solid #007bff; /* Blue accent border */
    color: #004085; /* Darker blue text */
    border-radius: 4px;
}

.field-recommendation-note strong {
    font-weight: 600; /* Make the "Merchant Account" part a bit bolder */
}

/* If you want a more traditional "badge" look for the word "Recommended" within the note: */
/*
.field-recommendation-note .badge-style {
    display: inline-block;
    padding: .2em .5em;
    font-size: .8em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
    background-color: #28a745; // Green for recommended
    margin-right: 5px;
}
Then in HTML:
<small class="field-recommendation-note">
    <span class="badge-style">Recommended:</span> Use a <strong>Merchant Account</strong> for your business.
</small>
*/

/* /Styles/add-business.css - Add this to the end */

/* --- New Styles for Payment Information Section --- */

.section-note {
    font-size: 0.9em;
    color: #555;
    margin-top: -10px;
    margin-bottom: 20px;
}

.payment-choice-container {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.payment-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1em;
}

.payment-radio-label input[type="radio"] {
    margin-right: 8px;
    transform: scale(1.2); /* Make radio buttons slightly larger */
}

.payment-input-group {
    transition: opacity 0.3s ease-in-out;
}

/* This is the key style for the "grayed out" effect */
.payment-input-group.disabled {
    opacity: 0.5;
    pointer-events: none; /* Prevents clicking or interacting with the disabled input */
}

.payment-input-group.disabled label {
    color: #888;
}