/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Droid Serif';
    background-color: #f5f6fa;
    /* padding: 20px 0; */
}

/* Container */
.ad-container {
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-top: 30px;
    margin-bottom: 60px;
    font-family: 'Droid Serif' ;
}

/* Header Section */
.header {
    background:linear-gradient(
175deg, #00BC7D 0%, #009689 100%);
    color: white;
    padding: 44px 147px;
    /* text-align: left; */
}

.header h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.header p {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.95;
}

/* Form Content */
.form-content {
    padding: 45px 230px;
}

.form-section {
    margin-bottom: 45px;
}

.form-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 14px;
    color: #636e72;
    margin-bottom: 20px;
    font-style: normal;
}

.optional-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: #636e72;
    background: #f1f3f5;
    padding: 4px 10px;
    border-radius: 12px;
    margin-left: 10px;
}

/* Card Grid (How You Can Work With Us) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    padding: 22px 25px;
    border: 2px solid rgba(0, 184, 148, 0.35);
    border-radius: 12px;
    background: rgba(0, 184, 148, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-card:hover {
    border-color: #00b894;
    background: rgba(0, 184, 148, 0.14);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.15);
}

/* Icon + Heading — horizontal row */
.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 184, 148, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a3d2e;
    margin: 0;
    line-height: 1.3;
}

/* Description below the header row */
.info-card p {
    font-size: 14px;
    color: #2d6a50;
    line-height: 1.5;
    margin: 0;
}

/* Input Groups */
.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 8px;
}

.required {
    color: #e74c3c;
    margin-left: 2px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    /* font-family: inherit; */
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #00b894;
    box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.1);
}

.input-group textarea {
    resize: vertical;
    min-height: 120px;
}

.helper-text {
    display: block;
    font-size: 13px;
    color: #95a5a6;
    margin-top: 6px;
    font-style: italic;
}

/* Input Row (Two columns) */
.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Selection Grid (Work Type) */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.selection-card {
    position: relative;
}

.selection-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.selection-card label {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    min-height: 100px;
}

.selection-card:hover label {
    border-color: #00b894;
    background: #f8fffe;
}

.selection-card input[type="checkbox"]:checked + label {
    border-color: #00b894;
    background: #f0fdf9;
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.15);
}

.selection-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 184, 148, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    color: #00b894;
}

.selection-card input[type="checkbox"]:checked + label .selection-icon {
    background: #00b894;
    color: white;
}

.selection-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 5px;
}

.selection-content p {
    font-size: 13px;
    color: #636e72;
    line-height: 1.4;
}

/* Submit Section */
.submit-section {
    margin-top: 50px;
    text-align: center;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #00BC7D 0%, #009689 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(0, 184, 148, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 184, 148, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Footer Note */
.footer-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 25px;
    padding: 18px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 13px;
    color: #636e72;
    text-align: left;
    border-left: 4px solid #00b894;
}

.footer-note svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-note strong {
    color: #2d3436;
}

/* Modal Overlay - FIXED */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    overflow-y: auto;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

/* Modal - FIXED */
.modal {
    background: white;
    border-radius: 20px;
    padding: 50px 45px;
    max-width: 540px;
    width: 100%;
    position: relative;
    text-align: center;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    margin: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f3f5;
    border: none;
    font-size: 24px;
    color: #636e72;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
    font-weight: 300;
}

.modal-close:hover {
    background: #e9ecef;
    color: #2d3436;
}

.modal-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 184, 148, 0.4);
}

.modal-icon svg {
    width: 45px;
    height: 45px;
}

.modal h2 {
    font-size: 28px;
    color: #2d3436;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.modal p {
    font-size: 16px;
    color: #636e72;
    line-height: 1.7;
    margin-bottom: 10px;
}

.modal-note {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #00b894;
}

.modal-note p {
    margin: 0;
}

/* Modal Buttons */
.modal-buttons {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-btn {
    padding: 16px 35px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3);
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 184, 148, 0.4);
}

.modal-btn-secondary {
    background: white;
    color: #00b894;
    border: 2px solid #00b894;
    font-weight: 600;
}

.modal-btn-secondary:hover {
    background: #f0fdf9;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Responsive Design - Tablet */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .ad-container {
        margin-top: 20px;
        margin-bottom: 40px;
    }

    .header {
        padding: 35px 30px;
    }

    .header h1 {
        font-size: 26px;
    }

    .form-content {
        padding: 35px 30px;
    }

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

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

    .input-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .modal {
        padding: 45px 35px;
        max-width: 90%;
    }

    .modal h2 {
        font-size: 24px;
    }

    .modal-overlay {
        padding: 15px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .ad-container {
        border-radius: 12px;
        margin-top: 10px;
    }

    .header {
        padding: 30px 25px;
    }

    .header h1 {
        font-size: 24px;
    }

    .header p {
        font-size: 14px;
    }

    .form-content {
        padding: 30px 25px;
    }

    .form-section h2 {
        font-size: 20px;
    }

    .info-card {
        padding: 18px 20px;
    }

    .info-card h3 {
        font-size: 15px;
    }

    .info-card p {
        font-size: 13px;
    }

    .selection-card label {
        padding: 18px;
        min-height: auto;
    }

    .selection-icon {
        width: 36px;
        height: 36px;
    }

    .selection-content h3 {
        font-size: 14px;
    }

    .selection-content p {
        font-size: 12px;
    }

    .submit-btn {
        font-size: 16px;
        padding: 16px;
    }

    .modal {
        padding: 40px 25px;
        border-radius: 16px;
        max-width: 95%;
    }

    .modal-icon {
        width: 75px;
        height: 75px;
    }

    .modal-icon svg {
        width: 38px;
        height: 38px;
    }

    .modal h2 {
        font-size: 22px;
    }

    .modal p {
        font-size: 15px;
    }

    .modal-btn {
        padding: 14px 28px;
        font-size: 15px;
    }

    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 22px;
        top: 15px;
        right: 15px;
    }

    .modal-overlay {
        padding: 10px;
    }
}



/* ============================================= */

/* =============================================================== */
/* Newsletter Section */
.newsletter-section {
    background:linear-gradient(90deg, #014994 0%, #45b876 100%);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    width: 95%;
    margin: auto;
}

.newsletter-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-title {
    font-size: 24px;
    margin: 0;
    font-weight: bold;
}

.newsletter-text {
    font-size: 14px;
    margin: 0;
    opacity: 0.95;
    line-height: 1.5;
}

.newsletter-right {
    display: flex;
    justify-content: flex-end;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    width: 100%;
        background: white;
    padding: 4px;
    border-radius: 5px;
}

.email-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.email-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.subscribe-btn {
    padding: 12px 24px;
    background:#2abf60;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.subscribe-btn:hover {
    background: #0f4028;
}

/* Responsive Design */
@media (max-width: 768px) {
    .newsletter-section {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .newsletter-right {
        justify-content: stretch;
    }

    .newsletter-title {
        font-size: 20px;
    }

    .newsletter-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .newsletter-section {
        padding: 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .subscribe-btn {
        width: 100%;
    }

    .newsletter-title {
        font-size: 18px;
    }
}
 h1 {
    font-size: 2rem !important;
}

h2 {
    font-size: 1.5rem !important;
}

p {
    font-size: 17px !important;
}
/* ============================================
   FIX: Error red always overrides focus green
   Paste at the VERY BOTTOM of advertising.css
   ============================================ */

/* When a field has an error message sibling, keep it red even on focus */
.input-group input.adv-field-error,
.input-group textarea.adv-field-error,
.input-group input.adv-field-error:focus,
.input-group textarea.adv-field-error:focus {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1) !important;
}