/**
 * Public Styles
 * Relayout AEO + GEO Suite
 */

/* GEO Content */
.relayout-geo-content {
    opacity: 0;
    animation: fadeIn 0.3s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* GEO Popup */
.relayout-geo-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
}

.relayout-geo-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.relayout-geo-popup-content {
    position: relative;
    background: #fff;
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.relayout-geo-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
}

.relayout-geo-popup-close:hover {
    color: #000;
}

.relayout-geo-popup-body {
    margin-top: 20px;
}

/* AEO Schema Display (for debugging) */
.relayout-aeo-schema-display {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    border-left: 3px solid #2271b1;
    overflow-x: auto;
    font-size: 12px;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .relayout-geo-popup-content {
        margin: 20px;
        padding: 20px;
    }
}

/* ==========================================================================
   GEO Announcement Bars
   ========================================================================== */

.relayout-geo-announcement-bar {
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 15px 20px;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideInBar 0.3s ease;
}

@keyframes slideInBar {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.relayout-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.relayout-bar-message {
    flex: 1;
    font-size: 15px;
    line-height: 1.5;
}

.relayout-bar-link {
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}

.relayout-bar-link:hover {
    text-decoration: none;
}

.relayout-bar-close {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.7;
    margin-left: 10px;
}

.relayout-bar-close:hover {
    opacity: 1;
}

/* ==========================================================================
   GEO Lead Forms
   ========================================================================== */

.relayout-geo-lead-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin: 20px 0;
}

.geo-lead-form-inner .form-title {
    margin: 0 0 20px;
    font-size: 24px;
    color: #333;
}

.geo-lead-form-inner .form-field {
    margin-bottom: 20px;
}

.geo-lead-form-inner label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.geo-lead-form-inner input[type="text"],
.geo-lead-form-inner input[type="email"],
.geo-lead-form-inner input[type="tel"],
.geo-lead-form-inner textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.geo-lead-form-inner input:focus,
.geo-lead-form-inner textarea:focus {
    outline: none;
    border-color: #2271b1;
}

.geo-lead-form-inner textarea {
    resize: vertical;
    min-height: 100px;
}

.geo-lead-submit {
    background: #2271b1;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.geo-lead-submit:hover {
    background: #135e96;
}

.geo-lead-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-response {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 4px;
    display: none;
}

.form-response.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-response.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}
