/**
 * Webup Footer - Frontend Styles
 */

/* ==========================================================================
   Reset & Base
   ========================================================================== */

.webup-site-footer {
    background-color: var(--webup-footer-bg, #1a1a2e);
    color: var(--webup-footer-text, #cccccc);
    font-size: 15px;
    line-height: 1.6;
}

.webup-site-footer *,
.webup-site-footer *::before,
.webup-site-footer *::after {
    box-sizing: border-box;
}

.webup-footer-container {
    max-width: var(--webup-footer-max-width, 1200px);
    margin: 0 auto;
    padding: 0 20px;
}

/* Override Hello Elementor heading styles */
.webup-site-footer h2,
.webup-site-footer h3 {
    font-size: 1.2em !important;
    font-weight: 600 !important;
    color: var(--webup-footer-heading, #ffffff) !important;
    text-transform: none !important;
    text-align: left !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.webup-site-footer a {
    color: var(--webup-footer-accent, #4a9eff);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.webup-site-footer a:hover {
    opacity: 0.8;
}

/* ==========================================================================
   Contact Form Section
   ========================================================================== */

.webup-footer-form-section {
    background-color: var(--webup-footer-form-bg, #16162a);
    color: var(--webup-footer-form-text, #ffffff);
    padding: 60px 0;
    position: relative;
}

.webup-footer-form-section--has-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.webup-footer-form-section--has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--webup-footer-form-overlay-color, #16162a);
    opacity: var(--webup-footer-form-overlay-opacity, 0.7);
    z-index: 0;
}

.webup-footer-form-section--has-bg > .webup-footer-container {
    position: relative;
    z-index: 1;
}

.webup-site-footer .webup-footer-form-title {
    text-align: center !important;
    font-size: 1.5em !important;
    margin-bottom: 30px !important;
    color: var(--webup-footer-form-heading, #ffffff) !important;
}

.webup-footer-form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
}

.webup-footer-form-field--full {
    grid-column: 1 / -1;
}

.webup-footer-contact input[type="text"],
.webup-footer-contact input[type="email"],
.webup-footer-contact textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--webup-footer-form-input-bg, rgba(255, 255, 255, 0.08));
    border: 1px solid var(--webup-footer-form-input-border, rgba(255, 255, 255, 0.15));
    border-radius: 8px;
    color: var(--webup-footer-form-text, #ffffff);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.webup-footer-contact input[type="text"]::placeholder,
.webup-footer-contact input[type="email"]::placeholder,
.webup-footer-contact textarea::placeholder {
    color: var(--webup-footer-form-text, #ffffff);
    opacity: 0.4;
}

.webup-footer-contact input[type="text"]:focus,
.webup-footer-contact input[type="email"]:focus,
.webup-footer-contact textarea:focus {
    border-color: var(--webup-footer-accent, #4a9eff);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.15);
}

.webup-footer-contact textarea {
    resize: vertical;
    min-height: 100px;
}

.webup-footer-form-actions {
    text-align: center;
    margin-top: 20px;
}

.webup-footer-form-submit {
    display: inline-block;
    padding: 14px 40px;
    background: var(--webup-footer-form-button-bg, var(--webup-footer-accent, #4a9eff));
    color: var(--webup-footer-form-button-text, #fff);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.webup-footer-form-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.webup-footer-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.webup-footer-form-message {
    max-width: 700px;
    margin: 15px auto 0;
    padding: 12px 18px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

.webup-footer-form-message--success {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.webup-footer-form-message--error {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* ==========================================================================
   USP Bar
   ========================================================================== */

.webup-footer-usp-section {
    background-color: var(--webup-footer-usp-bg, #12122a);
    padding: 40px 0;
}

.webup-footer-usp-grid {
    display: grid;
    gap: 30px;
    align-items: start;
}

.webup-footer-usp-grid--1 {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
}

.webup-footer-usp-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.webup-footer-usp-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.webup-footer-usp-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.webup-footer-usp-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
}

.webup-footer-usp-icon {
    flex-shrink: 0;
    color: var(--webup-footer-usp-icon, #4a9eff);
    line-height: 1;
}

.webup-footer-usp-icon svg {
    display: block;
}

.webup-site-footer .webup-footer-usp-title {
    font-size: 1em !important;
    font-weight: 600 !important;
    color: var(--webup-footer-usp-heading, #ffffff) !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.3 !important;
}

.webup-footer-usp-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--webup-footer-usp-text, #cccccc);
}

/* ==========================================================================
   Main Footer (3 Columns)
   ========================================================================== */

.webup-footer-main {
    padding: 60px 0 40px;
}

.webup-footer-columns {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 50px;
}

.webup-footer-col {
    text-align: left;
}

/* Column: Logo */
.webup-footer-logo-link {
    display: inline-block;
    margin-bottom: 15px;
}

.webup-footer-logo {
    max-width: 180px;
    height: auto;
    display: block;
}

.webup-footer-logo--inverted {
    filter: brightness(0) invert(1);
}

.webup-footer-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--webup-footer-text, #cccccc);
}

/* Payment Icons */
.webup-footer-payment {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 15px;
}

.webup-footer-payment-icon {
    display: block;
    width: 42px;
    height: 28px;
    border-radius: 4px;
    overflow: hidden;
}

.webup-footer-payment-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Column: Contact */
.webup-footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.webup-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.webup-footer-icon {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--webup-footer-accent, #4a9eff);
    opacity: 0.7;
}

.webup-footer-contact-item a {
    color: var(--webup-footer-text, #cccccc);
}

.webup-footer-contact-item a:hover {
    color: var(--webup-footer-accent, #4a9eff);
    opacity: 1;
}

/* Column: Links */
.webup-footer-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.webup-footer-link-list li {
    margin-bottom: 10px;
}

.webup-footer-link-list a {
    color: var(--webup-footer-text, #cccccc);
    font-size: 14px;
    transition: color 0.2s ease;
}

.webup-footer-link-list a:hover {
    color: var(--webup-footer-accent, #4a9eff);
    opacity: 1;
}

/* ==========================================================================
   Bottom Bar
   ========================================================================== */

.webup-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.webup-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.webup-footer-copyright {
    margin: 0;
    font-size: 13px;
    color: var(--webup-footer-text, #cccccc);
    opacity: 0.7;
}

.webup-footer-credit-row {
    text-align: center;
    padding-top: 15px;
}

.webup-footer-credit {
    font-size: 12px;
    color: var(--webup-footer-text, #cccccc);
    opacity: 0.4;
}

.webup-footer-credit a {
    color: var(--webup-footer-text, #cccccc);
}

.webup-footer-credit a:hover {
    color: var(--webup-footer-accent, #4a9eff);
    opacity: 1;
}

/* Hide old webup_admin footer when our footer is active */
body .webup-footer:not(.webup-site-footer) {
    display: none !important;
}

.webup-footer-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.webup-footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--webup-footer-text, #cccccc);
    transition: background 0.2s ease, color 0.2s ease;
}

.webup-footer-social-link:hover {
    background: var(--webup-footer-accent, #4a9eff);
    color: #fff;
    opacity: 1;
}

.webup-footer-social-link svg {
    display: block;
}

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

@media (max-width: 768px) {
    .webup-footer-usp-section {
        padding: 30px 0;
    }

    .webup-footer-usp-grid--2,
    .webup-footer-usp-grid--3,
    .webup-footer-usp-grid--4 {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .webup-footer-form-section {
        padding: 40px 0;
    }

    .webup-footer-form-fields {
        grid-template-columns: 1fr;
    }

    .webup-footer-main {
        padding: 40px 0 30px;
    }

    .webup-footer-columns {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .webup-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}
