/**
 * Estilos para Food Directory Contact Protection
 */

.fdcp-contact-section {
    background: #f9f9f9;
    padding: 30px;
    margin: 30px 0;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.fdcp-contact-section h3 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
}

.fdcp-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.fdcp-contact-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.fdcp-contact-item strong {
    color: #333;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fdcp-contact-item span,
.fdcp-contact-item a {
    color: #666;
    font-size: 16px;
    line-height: 1.4;
}

.fdcp-contact-item a {
    color: #4CAF50;
    text-decoration: none;
}

.fdcp-contact-item a:hover {
    text-decoration: underline;
}

.fdcp-reveal-phone {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.fdcp-reveal-phone:hover {
    background: linear-gradient(135deg, #388E3C, #2E7D32);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.fdcp-contact-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.fdcp-contact-button {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fdcp-contact-button:hover {
    background: linear-gradient(135deg, #388E3C, #2E7D32);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.fdcp-social-media {
    margin-top: 20px;
    text-align: left;
}

.fdcp-social-media strong {
    display: block;
    margin-bottom: 10px;
    color: #333;
}

.fdcp-social-media a {
    display: inline-block;
    margin-right: 15px;
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
}

.fdcp-social-media a:hover {
    text-decoration: underline;
}

/* Modal Styles */
.fdcp-modal {
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    animation: fdcpFadeIn 0.3s ease;
}

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

.fdcp-modal-content {
    background-color: #ffffff;
    margin: 3% auto;
    padding: 30px;
    border: none;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: fdcpSlideIn 0.3s ease;
}

@keyframes fdcpSlideIn {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.fdcp-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.fdcp-modal-close:hover {
    color: #333;
}

.fdcp-modal-content h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 22px;
    padding-right: 30px;
}

.fdcp-form-group {
    margin-bottom: 20px;
}

.fdcp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.fdcp-form-group input,
.fdcp-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.fdcp-form-group input:focus,
.fdcp-form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.fdcp-form-group input.fdcp-error,
.fdcp-form-group textarea.fdcp-error {
    border-color: #f44336;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

.fdcp-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.fdcp-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

.fdcp-submit-button {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.fdcp-submit-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #388E3C, #2E7D32);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.fdcp-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fdcp-cancel-button {
    background: #666;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.fdcp-cancel-button:hover {
    background: #555;
}

.fdcp-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
}

.fdcp-message.fdcp-success {
    background: #e8f5e8;
    color: #2E7D32;
    border: 2px solid #4CAF50;
}

.fdcp-message.fdcp-error {
    background: #ffeaea;
    color: #c62828;
    border: 2px solid #f44336;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fdcp-contact-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .fdcp-contact-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .fdcp-contact-item {
        padding: 12px;
    }
    
    .fdcp-modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 20px;
    }
    
    .fdcp-form-actions {
        flex-direction: column;
    }
    
    .fdcp-submit-button,
    .fdcp-cancel-button {
        width: 100%;
        padding: 15px;
    }
    
    .fdcp-contact-button {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .fdcp-contact-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    .fdcp-contact-section h3 {
        font-size: 20px;
    }
    
    .fdcp-modal-content {
        padding: 15px;
    }
    
    .fdcp-modal-content h3 {
        font-size: 18px;
        padding-right: 25px;
    }
}

