/* Neighbourhood Gems Form Styles */

/* Logo Background Styling */
.site-logo {
    background: rgba(0, 0, 0, 0.6) !important;
    padding: 1rem !important;
    max-width: 728px;
    width: 728px;
    margin: 0 auto 2rem auto !important;
    display: block !important;
    text-align: center !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 2 !important;
    backdrop-filter: blur(10px);
}

.site-logo img {
    max-width: 60% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 3 !important;
}

/* Intro wrapper to match chef-qualification-container width */
.intro-wrapper {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    position: relative;
    z-index: 1;
}

.intro-container {
    background-color: rgba(0, 0, 0, 0.65); 
    backdrop-filter: blur(10px); 
    margin: 0;
    padding: 30px;
    position: relative;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    z-index: 1;
}

/* Header Center Alignment */
.site-header .header-inner {
    width: 1058px;
    padding: 15px;
}

.site-header {
    padding-block-end: 0 !important;
    padding-block-start: 27px !important;
}

/* Remove max-width for header-inner on larger screens */
@media (min-width: 576px) {
    .header-inner {
        max-width: none !important;
    }
}

/* Fullscreen Background */
body {
    background-image: url('https://neighbourhoodgems.eatout.co.za/wp-content/uploads/2025/09/neighbourhood-gems-bg.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

/* Overlay for better readability */
.chef-qualification-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: -1;
}

.chef-qualification-container {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    position: relative;
    z-index: 1;
}

.chef-form {
    /* background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
    overflow: hidden;
}

.qualification-fieldset {
    border: none;
    padding: 2.5rem 2rem .5rem 2rem;
    margin: 0 0 2rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.personal-info-fieldset, .newsletter-fieldset {
    border: none;
    padding: 2.5rem 2rem .5rem 2rem;
    margin: 0 0 2rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.nominations-fieldset {
    border: none;
    padding: 2.5rem 2rem .5rem 2rem;
    margin: 0 0 2rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.fieldset-legend {
    background: transparent;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    position: absolute;
    top: -0.75rem;
    left: 1rem;
    padding: 30px 0.5rem 0 0.5rem;
    z-index: 1;
}

/* Legend spacer for consistent spacing */
.legend-spacer {
    width: 100%;
    height: 30px;
    display: block;
}

.form-group {
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group.half-width {
    flex: 1;
    margin-bottom: 0;
}

.question-label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.required {
    color: #666;
    font-weight: bold;
}

/* Radio Button Styles */
.radio-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    gap: 0.5rem;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #ddd;
    background: #ddd;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    gap: 0.5rem;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    border-color: #ddd;
    background: #ddd;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

/* Input Styles */
body .form-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #f9f9f9;
}

/* Textarea Styles */
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #f9f9f9;
    resize: vertical;
    min-height: 100px;
}

.form-textarea:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(244, 185, 66, 0.1);
    background: #fff;
}

.form-input:focus {
    outline: none;
    border: 1px solid #e1e1e1;
    box-shadow: 0 0 0 3px rgba(244, 185, 66, 0.1);
    background: #fff;
}

.form-input::placeholder {
    color: #999;
    font-style: italic;
}

/* Select Styles */
.form-select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-size: 14px;
    background: #f9f9f9;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6,9 12,15 18,9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px;
    padding-right: 3rem;
}

.form-select:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(244, 185, 66, 0.1);
    background-color: #fff;
}

/* Submit Button */
.form-submit {
    padding: 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.submit-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
}

.submit-btn:hover {
    background: #eeeeee;
    color: #000;
}

/* Guidelines Box */
.guidelines-box {
    background: #f8f9fa;
    border-left: 4px solid #666;
    padding: 1rem;
    margin-bottom: 2rem;
    color: #666;
    font-style: italic;
    font-size: 14px;
}

/* Restaurant Nomination Styles */
.restaurant-nomination {
    border: 1px solid rgba(238, 238, 238, 0.3);
    padding: 1.5rem;
    margin-bottom: 2rem;
    background: rgba(250, 251, 252, 0.8);
    backdrop-filter: blur(5px);
    position: relative;
}

.restaurant-nomination:last-child {
    margin-bottom: 1rem;
}

.restaurant-header {
    background: #888;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    font-weight: 600;
    position: relative;
}

.restaurant-label {
    font-size: 14px;
}

.remove-restaurant-btn {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.remove-restaurant-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Add Nomination Button */
.add-nomination-container {
    text-align: center;
    margin-top: 1rem;
}

.add-nomination-btn {
    background: #666;
    border: none;
    color: #fff;
    padding: 1rem 2rem;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
}

.add-nomination-btn:hover {
    background: #eeeeee;
    color: #000000;
    border-color: #eeeeee;
}

.add-nomination-btn:focus {
    background: #fff;
    color: #666;
}

.add-nomination-btn:disabled {
    background: #eee;
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
}

.nomination-limit {
    margin: 0.5rem 0 1.5rem 0;
    color: #666;
    font-size: 14px;
}

/* Disabled State */
.form-select:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Adjust background for mobile */
    body {
        background-attachment: scroll;
    }
    
    /* Ensure site-logo width matches container width */
    .site-logo {
        max-width: 97%;
        width: 97%;
    }
    
    .chef-qualification-container {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    .intro-wrapper {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    /* Logo responsive styling */
    .site-logo {
        margin: 0 auto 1rem auto !important;
        padding: 0.75rem !important;
    }
    
    .qualification-fieldset,
    .personal-info-fieldset,
    .newsletter-fieldset,
    .nominations-fieldset {
        padding: 2rem 1.5rem .1rem 1.5rem;
        margin: 0 0 1.5rem 0;
    }
    
    .form-submit {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .fieldset-legend {
        font-size: 1.25rem;
        /* padding: 20px 0.5rem 0 0.5rem; */
    }
    
    .legend-spacer {
        height: 20px;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: .5rem;
    }
    
    .form-group.half-width {
        margin-bottom: 1.5rem;
    }
    
    .radio-group {
        gap: 1rem;
    }
    
    .submit-btn {
        max-width: none;
    }
    
    /* Remove header inline padding on mobile */
    .site-header .header-inner {
        max-width: 100%;
        padding-inline-start: 0 !important;
        padding-inline-end: 0 !important;
    }
}

@media (max-width: 480px) {
    .qualification-fieldset,
    .personal-info-fieldset,
    .newsletter-fieldset,
    .nominations-fieldset {
        padding: 1.5rem 1rem .1rem 1rem;
        margin: 0 0 1.25rem 0;
    }
    
    .form-submit {
        padding: 1.25rem 1rem;
        margin-top: 1.25rem;
    }
    
    .fieldset-legend {
        font-size: 1.1rem;
        padding: 1.5rem 0.5rem 0 0
    }
    
    .legend-spacer {
        height: 25px;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-row {
        margin-bottom: 1.25rem;
    }
    
    .form-group.half-width {
        margin-bottom: 1.25rem;
    }

    .question-label {
        font-size: 14px;
        margin-bottom: 0.75rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Animation for conditional field */
.form-group {
    transition: all 0.3s ease;
}

/* Loading state */
.chef-form.loading {
    opacity: 0.7;
    pointer-events: none;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Success/Error messages */
.form-message {
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.form-success {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    backdrop-filter: blur(10px);
}

.form-error {
    background: rgba(231, 176, 64, 0.6);
    color: #fff;
}

/* Page Wrapper - Contains Main Form and Side Column */
.page-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1058px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* Chef Qualification Container - Maintains 600px width, appears first (left) */
.chef-qualification-container {
    width: 728px;
    max-width: 728px;
    flex-shrink: 0;
    order: 1;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Side Column Wrapper - Appears second (right) */
.side-column-wrapper {
    width: 300px;
    flex-shrink: 0;
    order: 2;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    z-index: 10;
}

.side-column-content {
    border-radius: 0;
    padding: 0;
    z-index: 10;
    text-align: center;
}

.side-column-content h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.side-column-content p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.side-column-link {
    display: inline-block;
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.side-column-link:hover {
    color: #135e96;
    text-decoration: underline;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .side-column-wrapper {
        width: 250px;
    }
    
    .page-wrapper {
        gap: 20px;
        max-width: 900px;
    }
    
    .chef-qualification-container {
        width: 550px;
        max-width: 550px;
    }
}

@media screen and (max-width: 768px) {
    .page-wrapper {
        flex-direction: column;
        gap: 20px;
        padding: 0 0.5rem;
    }
    
    .side-column-wrapper {
        width: 100%;
        position: static;
        order: 1; /* Side column appears at top on mobile */
    }
    
    .chef-qualification-container {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        order: 2; /* Form appears below on mobile */
    }
    
    .side-column-content {
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .side-column-content {
        padding: 15px;
    }
    
    .side-column-content h3 {
        font-size: 16px;
    }
    
    .side-column-content p {
        font-size: 13px;
    }
    
    .page-wrapper {
        padding: 0 0.5rem;
    }
    
    .chef-qualification-container {
        width: 100%;
        max-width: 100%;
    }
}

/* Intro Page Wrapper - Contains Intro and Side Column */
.intro-page-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1058px; /* 600px intro + 30px gap + 300px column */
    margin: 0 auto 0 auto;
    padding: 0 1rem;
}

/* Intro wrapper - maintains current styling */
.intro-wrapper {
    width: 728px;
    max-width: 728px;
    flex-shrink: 0;
    padding: 0;
}

/* Intro Side Column */
.intro-side-column-wrapper {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 30px;
    align-self: flex-start;
    z-index: 100;
}

.intro-side-column-content {
    padding: 0;
    min-height: 200px; /* Adjust based on your content */
}

/* Page Wrapper - Contains Main Form and Side Column */
.page-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1058px; /* Match intro-page-wrapper: 600px + 30px + 300px */
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}


/* Responsive Design */
@media screen and (max-width: 1024px) {
    .intro-page-wrapper {
        max-width: 820px; /* 550px + 20px + 250px */
    }
    
    .intro-wrapper {
        width: 550px;
        max-width: 550px;
    }
    
    .intro-side-column-wrapper {
        width: 250px;
    }
    
    .side-column-wrapper {
        width: 250px;
    }
    
    .page-wrapper {
        gap: 20px;
        max-width: 820px;
    }
    
    .chef-qualification-container {
        width: 550px;
        max-width: 550px;
    }
}

@media screen and (max-width: 768px) {
    .intro-page-wrapper {
        flex-direction: column;
        gap: 20px;
        padding: 0 0.5rem;
        max-width: 600px;
    }
    
    .intro-wrapper {
        width: 100%;
        max-width: 600px;
    }
    
    .intro-side-column-wrapper {
        width: 100%;
        order: -1; /* Move to top on mobile */
        display: none;
    }
    
    .intro-container {
        padding: 1.5rem;
    }
    
    .intro-side-column-content {
        padding: 20px;
    }
    
    .page-wrapper {
        flex-direction: column;
        gap: 20px;
        padding: 0 0.5rem;
        max-width: 600px;
    }
    
    .side-column-wrapper {
        width: 100%;
        position: static;
        order: 1;
    }
    
    .chef-qualification-container {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        order: 2;
    }
    
    .side-column-content {
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .intro-container {
        padding: 1rem;
        font-size: 14px;
    }
    
    .intro-side-column-content {
        padding: 15px;
    }
    
    .side-column-content {
        padding: 15px;
    }
    
    .side-column-content h3 {
        font-size: 16px;
    }
    
    .side-column-content p {
        font-size: 13px;
    }
    
    .page-wrapper {
        padding: 0 0.5rem;
    }
    
    .chef-qualification-container {
        width: 100%;
        max-width: 100%;
    }
}

.banner-ad-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 2rem 0;
    background: transparent;
    position: relative;
}

.main-content-wrapper {
    z-index: 1;
}

.intro-side-column-content {
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 100;
}

.mobile-banner-wrapper {
    display: none;
}

@media screen and (max-width: 768px) {
    .mobile-banner-wrapper {
        display: block;
        margin-bottom: 2rem;
        text-align: center;
    }

    .mobile-banner img {
        cursor: pointer;
        pointer-events: auto;
        position: relative;
        z-index: 100;
    }
}