/**
 * Popup Form Styles
 */

.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.show {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.popup-container {
    position: relative;
    background: #fff;
    display: flex;
    flex-direction: row;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 1200px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Content Side */
.popup-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    max-height: 90vh;
}

.popup-title {
    color: #34cb57;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(52, 203, 87, 0.1);
}

.popup-subtitle {
    color: #075e54;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.popup-description {
    color: #2c5f2d;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Form Styles */
.popup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-input {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #34cb57;
    box-shadow: 0 0 0 3px rgba(52, 203, 87, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-submit-btn {
    background: linear-gradient(135deg, #34cb57 0%, #2bb14a 100%);
    color: #fff;
    padding: 0.875rem 2.5rem;
    border: none;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(52, 203, 87, 0.3);
}

.form-submit-btn:hover {
    background: linear-gradient(135deg, #2bb14a 0%, #239c3e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 203, 87, 0.4);
}

.form-submit-btn:active {
    transform: translateY(0);
}

.form-submit-btn:disabled {
    background-color: #6b7280;
    cursor: not-allowed;
    transform: none;
}

/* Image Side */
.popup-image {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    padding: 1rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.popup-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
}

/* Close Button */
.popup-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #34cb57;
    border-radius: 50%;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: #34cb57;
}

.popup-close-btn:hover {
    background-color: #34cb57;
    color: #fff;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(52, 203, 87, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .popup-container {
        flex-direction: column;
        max-height: 95vh;
        overflow-y: auto;
    }
    
    .popup-content {
        padding: 1.5rem;
    }
    
    .popup-title {
        font-size: 1.5rem;
    }
    
    .popup-subtitle {
        font-size: 1.25rem;
    }
    
    .popup-image {
        min-height: 200px;
        max-height: 300px;
    }
    
    .popup-image img {
        max-width: 250px;
    }
    
    .popup-close-btn {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
    
    .form-submit-btn {
        width: 100%;
        align-self: stretch;
    }
}

@media (max-width: 480px) {
    .popup-container {
        width: 95%;
        margin: 1rem;
    }
    
    .popup-content {
        padding: 1rem;
    }
    
    .popup-title {
        font-size: 1.25rem;
    }
    
    .popup-subtitle {
        font-size: 1.1rem;
    }
    
    .popup-description {
        font-size: 0.9rem;
    }
    
    .form-input {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
}

/* Optional: Add animation for popup trigger buttons */
.popup-trigger {
    position: relative;
    overflow: hidden;
}

.popup-trigger::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.popup-trigger:hover::after {
    transform: translateX(0);
}

