/* 
 * Contact Modal Styles for DISP_detail.php
 * このCSSは about/DISP_detail.php でのみ使用されます
 */

/* ページ固有のスタイル（body#p-about でスコープを限定） */
body#p-about .contact-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: contactModalFadeIn 0.3s ease-in-out;
}

body#p-about .contact-modal.show {
    display: block;
}

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

body#p-about .contact-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: none;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: contactModalSlideIn 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

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

body#p-about .contact-modal-header {
    padding: 20px 30px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body#p-about .contact-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

body#p-about .contact-modal-close {
    color: #999;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

body#p-about .contact-modal-close:hover,
body#p-about .contact-modal-close:focus {
    color: #333;
}

body#p-about .contact-modal-body {
    padding: 30px;
}

body#p-about .contact-form-group {
    margin-bottom: 20px;
}

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

body#p-about .contact-form-required {
    color: #e74c3c;
    font-weight: bold;
}

body#p-about .contact-form-group input,
body#p-about .contact-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

body#p-about .contact-form-group input:focus,
body#p-about .contact-form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

body#p-about .contact-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

body#p-about .contact-form-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

body#p-about .contact-btn-cancel,
body#p-about .contact-btn-submit {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 100px;
}

body#p-about .contact-btn-cancel {
    background-color: #6c757d;
    color: white;
}

body#p-about .contact-btn-cancel:hover {
    background-color: #5a6268;
}

body#p-about .contact-btn-submit {
    background-color: #28a745;
    color: white;
}

body#p-about .contact-btn-submit:hover {
    background-color: #218838;
}

body#p-about .contact-btn-submit:disabled {
    background-color: #94d3a2;
    cursor: not-allowed;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    body#p-about .contact-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    body#p-about .contact-modal-header,
    body#p-about .contact-modal-body {
        padding: 20px;
    }
    
    body#p-about .contact-form-buttons {
        flex-direction: column;
    }
    
    body#p-about .contact-btn-cancel,
    body#p-about .contact-btn-submit {
        width: 100%;
    }
}
