/**
 * Custom Theme Styles
 * Additional styles beyond base theme
 *
 * @package BeyondPublisher
 */

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar-light {
    padding: 15px 0;
}

.container-light-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand img,
.navbar-brand .custom-logo {
    max-height: 50px;
    width: auto;
}

.navbar-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-menu a {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    transition: opacity 0.3s ease;
}

.nav-menu a:hover {
    opacity: 0.7;
}

.navbar-button {
    padding: 10px 24px;
    font-size: 14px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle-icon {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--bg-neutral);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-navigation .custom-logo-link {
    display: inline-block;
}

.footer-navigation .custom-logo {
    max-height: 50px;
    width: auto;
    height: auto;
}

.footer-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.footer-nav-menu a {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
}

.footer-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 40px 0;
}

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

.footer-copyright p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

/* Newsletter */
.footer-newsletter {
    background: #ffffff;
    padding: 60px 0;
    margin-top: 60px;
}

.newsletter-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-color);
}

.newsletter-submit {
    padding: 14px 32px;
}

.newsletter-message {
    font-size: 14px;
    margin-top: 10px;
}

.newsletter-message.success {
    color: #28a745;
}

.newsletter-message.error {
    color: #dc3545;
}

/* ==========================================================================
   Page Header
   ========================================================================== */

.page-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 60px 0;
    background: var(--bg-neutral);
    border-radius: 8px;
}

.page-header .page-title {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header .page-description {
    font-size: 1.25rem;
    color: #666;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 991px) {
    .navbar-menu-wrapper {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
    }

    .navbar-menu-wrapper.active {
        transform: translateY(0);
    }

    .nav-menu {
        flex-direction: column;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .footer-navigation,
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-nav-menu {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .newsletter-form {
        flex-direction: column;
    }
}

/* ==========================================================================
   Service Page Form
   ========================================================================== */

.service-form {
    margin-top: 30px;
}

.service-form-field {
    margin-bottom: 20px;
}

.service-form-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.service-form .service-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    font-family: var(--font-secondary);
    transition: border-color 0.3s ease;
    background: #ffffff;
}

.service-form .service-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.service-form .submit-button {
    width: 100%;
    padding: 16px 40px;
    background: var(--primary-color);
    color: #ffffff;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-transform: none;
}

.service-form .submit-button:hover {
    background: transparent;
    color: var(--primary-color);
}

/* Service form validation */
.service-form .wpcf7-not-valid {
    border-color: #dc3545 !important;
}

.service-form .wpcf7-not-valid-tip {
    font-size: 13px;
    color: #dc3545;
    margin-top: 5px;
}

.service-form .wpcf7-response-output {
    margin: 15px 0 0;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
}

.service-form .wpcf7-mail-sent-ok {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.service-form .wpcf7-validation-errors,
.service-form .wpcf7-mail-sent-ng {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Service Form - Responsive */
@media (max-width: 767px) {
    .service-form .service-input {
        font-size: 14px;
        padding: 12px 16px;
    }

    .service-form .submit-button {
        font-size: 14px;
        padding: 14px 32px;
    }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   Contact Form (Contact Form 7)
   ========================================================================== */

/* Contact Page Layout */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-left {
    padding-right: 40px;
}

.contact-left .subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.contact-left h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-left .paragraph {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 40px;
}

.contact-information-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-information-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
}

.contact-information-icon {
    width: 24px;
    height: 24px;
}

.contact-information-text {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
}

/* Contact Form Card */
.contact-right {
    position: relative;
}

.card.contact {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

/* Form Grid Layout */
.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.input-wrapper-full {
    grid-column: 1 / -1;
}

/* Form Field Styling */
.wpcf7 .input-wrapper label,
.wpcf7 .input-wrapper-full label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    font-family: var(--font-secondary);
    transition: border-color 0.3s ease;
    background: #ffffff;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

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

/* Checkbox Styling for Placements */
.placement-checkboxes {
    margin-top: 15px;
}

.placement-checkboxes .wpcf7-form-control.wpcf7-checkbox {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.wpcf7 .wpcf7-list-item {
    margin: 0;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpcf7 .wpcf7-list-item:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.wpcf7 .wpcf7-list-item label {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin: 0;
    cursor: pointer;
}

.wpcf7 .wpcf7-list-item-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    margin: 0;
}

.wpcf7 input[type="checkbox"] {
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

/* Checkbox Icons with ::before - Original SVG Icons */
.wpcf7 .wpcf7-list-item-label::before {
    content: '';
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    opacity: 0.9;
    display: inline-block;
}

/* Individual Checkbox Icons - SVG Background Images (by position) */
.wpcf7 .placement-checkboxes .wpcf7-list-item:nth-child(1) .wpcf7-list-item-label::before {
    background-image: url('../images/icons/icon-sponsored-post.svg');
}

.wpcf7 .placement-checkboxes .wpcf7-list-item:nth-child(2) .wpcf7-list-item-label::before {
    background-image: url('../images/icons/icon-video.svg');
}

.wpcf7 .placement-checkboxes .wpcf7-list-item:nth-child(3) .wpcf7-list-item-label::before {
    background-image: url('../images/icons/icon-package.svg');
}

.wpcf7 .placement-checkboxes .wpcf7-list-item:nth-child(4) .wpcf7-list-item-label::before {
    background-image: url('../images/icons/icon-native-ad.svg');
}

.wpcf7 .placement-checkboxes .wpcf7-list-item:nth-child(5) .wpcf7-list-item-label::before {
    background-image: url('../images/icons/icon-newsletter.svg');
}

.wpcf7 .placement-checkboxes .wpcf7-list-item:nth-child(6) .wpcf7-list-item-label::before {
    background-image: url('../images/icons/icon-other.svg');
}

/* Submit Button */
.wpcf7 input[type="submit"] {
    width: 100%;
    padding: 16px 40px;
    background: var(--primary-color);
    color: #ffffff;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.wpcf7 input[type="submit"]:hover {
    background: transparent;
    color: var(--primary-color);
}

/* Form Messages */
.wpcf7-response-output {
    margin: 20px 0 0;
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 14px;
}

.wpcf7-mail-sent-ok {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.wpcf7-spinner {
    margin-left: 10px;
}

/* Validation Errors */
.wpcf7-not-valid-tip {
    font-size: 13px;
    color: #dc3545;
    margin-top: 5px;
}

.wpcf7-not-valid {
    border-color: #dc3545 !important;
}

/* ==========================================================================
   Contact Form - Responsive
   ========================================================================== */

/* Tablet (991px and below) */
@media (max-width: 991px) {
    /* Stack contact sections vertically */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-left {
        padding-right: 0;
        text-align: center;
    }

    .contact-left h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .contact-left .paragraph {
        font-size: 1rem;
    }

    .contact-information-wrapper {
        justify-content: center;
    }

    /* Keep checkboxes in 2 columns on tablet */
    .placement-checkboxes .wpcf7-form-control.wpcf7-checkbox {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Adjust form card */
    .card.contact {
        padding: 35px 25px;
    }

    /* Form inputs */
    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"],
    .wpcf7 textarea {
        font-size: 15px;
        padding: 12px 18px;
    }

    /* Submit button */
    .wpcf7 input[type="submit"] {
        padding: 14px 36px;
        font-size: 15px;
    }

    /* Checkbox items */
    .wpcf7 .wpcf7-list-item {
        padding: 16px;
    }

    .wpcf7 .wpcf7-list-item-label::before {
        width: 28px;
        height: 28px;
    }
}

/* Mobile (767px and below) */
@media (max-width: 767px) {
    /* Stack form inputs vertically */
    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Reduce card padding */
    .card.contact {
        padding: 25px 15px;
        border-radius: 6px;
    }

    /* Contact left section */
    .contact-left h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .contact-left .subtitle {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .contact-left .paragraph {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 30px;
    }

    .contact-information-title {
        font-size: 1.125rem;
        margin-bottom: 15px;
    }

    /* Stack checkboxes vertically on mobile */
    .placement-checkboxes .wpcf7-form-control.wpcf7-checkbox {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Smaller form inputs */
    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"],
    .wpcf7 textarea {
        font-size: 14px;
        padding: 12px 16px;
    }

    .wpcf7 textarea {
        min-height: 100px;
    }

    /* Full-width button */
    .wpcf7 input[type="submit"] {
        width: 100%;
        padding: 14px 24px;
        font-size: 14px;
    }

    /* Smaller checkbox items */
    .wpcf7 .wpcf7-list-item {
        padding: 14px 12px;
    }

    .wpcf7 .wpcf7-list-item label {
        gap: 8px;
    }

    .wpcf7 .wpcf7-list-item-label {
        gap: 8px;
        font-size: 13px;
    }

    .wpcf7 .wpcf7-list-item-label::before {
        width: 24px;
        height: 24px;
    }

    /* Form labels */
    .wpcf7 .input-wrapper label,
    .wpcf7 .input-wrapper-full label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    /* Response messages */
    .wpcf7-response-output {
        font-size: 13px;
        padding: 12px 15px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .contact-left h1 {
        font-size: 1.75rem;
    }

    .card.contact {
        padding: 20px 12px;
    }

    .contact-form-grid {
        gap: 12px;
    }

    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"],
    .wpcf7 textarea {
        padding: 10px 14px;
        font-size: 14px;
    }

    .wpcf7 input[type="submit"] {
        padding: 12px 20px;
    }

    .wpcf7 .wpcf7-list-item {
        padding: 12px 10px;
    }

    .wpcf7 .wpcf7-list-item-label {
        font-size: 12px;
    }

    .wpcf7 .wpcf7-list-item-label::before {
        width: 22px;
        height: 22px;
    }
}