/* ======================================== */
/* PROBLOCK - MODALS AND ANIMATIONS */
/* ======================================== */

/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Opening modal */
.opening-modal {
    background: linear-gradient(180deg, #ff6b6b 0%, #ff8e8e 50%, #4ecdc4 100%);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transform: scale(0.7);
    transition: all 0.3s ease;
}

.modal-overlay.active .opening-modal {
    transform: scale(1);
}

.opening-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.opening-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
    position: relative;
    z-index: 2;
}

.opening-modal h2 {
    color: white;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.opening-modal p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.opening-modal .close-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.opening-modal .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* Opening modal details */
.opening-details {
    margin: 1.5rem 0;
    text-align: left;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: white;
    font-size: 0.9rem;
    line-height: 1.4;
}

.detail-icon {
    font-size: 1.2rem;
    min-width: 1.5rem;
    text-align: center;
}

/* Opening modal actions */
.opening-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.primary-btn {
    background: rgba(255, 255, 255, 0.2);
}

.primary-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Contact modal */
.contact-modal {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 25px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.7);
    transition: all 0.3s ease;
}

.modal-overlay.active .contact-modal {
    transform: scale(1);
}

.contact-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-modal-header h2 {
    color: #2c3e50;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-modal-header p {
    color: #555;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-modal-close:hover {
    background: rgba(108, 117, 125, 0.1);
    color: #2c3e50;
    transform: rotate(90deg);
}

/* Contact form in modal */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem 1.2rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #2c3e50;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #43e97b;
    box-shadow: 0 0 15px rgba(67, 233, 123, 0.2);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6c757d;
}

.form-group select option {
    background: white;
    color: #2c3e50;
    padding: 10px;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.submit-btn {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: white;
    box-shadow: 0 8px 25px rgba(67, 233, 123, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(67, 233, 123, 0.4);
    background: linear-gradient(135deg, #38f9d7, #43e97b);
}

.cancel-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.cancel-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2, #667eea);
}

/* Loading state */
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn:disabled:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(67, 233, 123, 0.3);
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .opening-modal {
        padding: 2rem 1.5rem;
        max-width: 90%;
    }
    
    .opening-modal h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    .opening-modal p {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }
    
    .contact-modal {
        padding: 2rem 1.5rem;
        max-width: 95%;
    }
    
    .contact-modal-header h2 {
        font-size: clamp(1.8rem, 4vw, 2.2rem);
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .opening-modal {
        padding: 1.5rem 1rem;
    }
    
    .opening-icon {
        font-size: 3rem;
    }
    
    .opening-modal h2 {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
    }
    
    .opening-modal p {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
    }
    
    .contact-modal {
        padding: 1.5rem 1rem;
    }
    
    .contact-modal-header h2 {
        font-size: clamp(1.5rem, 4vw, 1.8rem);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}
