/* ========================================
   Global Newsletter Popup Styles
   ======================================== */

/* Overlay */
.gt-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.gt-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.gt-popup-container {
    background: #fff;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.8) translateY(-50px);
    transition: all 0.4s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.gt-popup-overlay.active .gt-popup-container {
    transform: scale(1) translateY(0);
}

/* Close Button */
.gt-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gt-popup-close:hover {
    background: #c4a77d;
    color: #fff;
    transform: rotate(90deg);
}

/* Popup Content Grid */
.gt-popup-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Left Side - Form */
.gt-popup-left {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gt-popup-title {
    font-family: 'Gilda Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.2;
}

.gt-popup-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Form Styles */
.gt-popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gt-popup-form-group {
    width: 100%;
}

.gt-popup-form-group input,
.gt-popup-form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.gt-popup-form-group input:focus,
.gt-popup-form-group textarea:focus {
    outline: none;
    border-color: #c4a77d;
    box-shadow: 0 0 0 3px rgba(196, 167, 125, 0.1);
}

.gt-popup-form-group input::placeholder,
.gt-popup-form-group textarea::placeholder {
    color: #999;
}

.gt-popup-form-group textarea {
    resize: none;
    min-height: 80px;
}

/* Submit Button */
.gt-popup-btn {
    display: inline-block;
    padding: 10px 50px;
    background: #c4a77d;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #c4a77d;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: fit-content;
}

.gt-popup-btn:hover {
    background: transparent;
    color: #c4a77d;
}

/* Right Side - Image */
.gt-popup-right {
    position: relative;
    overflow: hidden;
    min-height: 450px;
}

.gt-popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* ========================================
   Responsive Styles
   ======================================== */

/* Tablet Landscape */
@media (max-width: 991px) {
    .gt-popup-container {
        max-width: 700px;
    }
    
    .gt-popup-left {
        padding: 40px 30px;
    }
    
    .gt-popup-title {
        font-size: 30px;
    }
    
    .gt-popup-right {
        min-height: 400px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .gt-popup-overlay {
        padding: 15px;
        align-items: flex-start;
        overflow-y: auto;
    }
    
    .gt-popup-container {
        max-width: 500px;
        margin: 30px auto;
    }
    
    .gt-popup-content {
        grid-template-columns: 1fr;
    }
    
    .gt-popup-left {
        padding: 40px 30px 30px;
        order: 1;
    }
    
    .gt-popup-right {
        min-height: 200px;
        order: 2;
    }
    
    .gt-popup-title {
        font-size: 28px;
    }
    
    .gt-popup-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .gt-popup-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .gt-popup-overlay {
        padding: 10px;
    }
    
    .gt-popup-container {
        max-width: 100%;
        border-radius: 10px;
    }
    
    .gt-popup-left {
        padding: 30px 20px 25px;
    }
    
    .gt-popup-title {
        font-size: 24px;
    }
    
    .gt-popup-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .gt-popup-form {
        gap: 12px;
    }
    
    .gt-popup-form-group input,
    .gt-popup-form-group textarea {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .gt-popup-btn {
        width: 100%;
        text-align: center;
        padding: 12px 25px;
    }
    
    .gt-popup-right {
        min-height: 180px;
    }
}

/* Small Mobile */
@media (max-width: 375px) {
    .gt-popup-left {
        padding: 25px 15px 20px;
    }
    
    .gt-popup-title {
        font-size: 22px;
    }
    
    .gt-popup-right {
        min-height: 150px;
    }
}

/* Body scroll lock when popup is active */
body.popup-active {
    overflow: hidden;
}
