/*
 * File: modals.css
 * Version: mmdb-0.8.18-claude
 * Munich Musicians DB - Modal and Overlay Styles
 * GDPR modals, deletion confirmations, and overlay components
 */

/* GDPR Delete Section - Standalone styling */
.gdpr-delete-section{
    margin-top:40px;
    padding:25px;
    border:3px solid #d63638;
    border-radius:8px;
    background:#fff0f0;
    position:relative;
}

.gdpr-delete-section h3{
    color:#d63638;
    margin:0 0 15px 0;
    font-size:1.2rem;
    font-weight:bold;
}

.gdpr-delete-section p{
    color:#333;
    margin-bottom:15px;
    font-weight:500;
}

.gdpr-delete-btn{
    background:#d63638!important;
    border-color:#d63638!important;
    color:#fff!important;
    padding:12px 24px;
    font-size:1rem;
    font-weight:bold !important;
    text-transform:uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 6px rgba(214, 54, 56, 0.2) !important;
}

.gdpr-delete-btn:hover{
    background:#a72024!important;
    border-color:#a72024!important;
    transform:translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(214, 54, 56, 0.3) !important;
}

/* Modal Styles */
.gdpr-modal{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.7);z-index:1000;display:none;align-items:center;justify-content:center}
.gdpr-modal.show{display:flex}
.gdpr-modal-content{background:#fff;padding:30px;border-radius:12px;max-width:500px;width:90%;text-align:center;box-shadow:0 10px 30px rgba(0,0,0,0.3)}
.gdpr-modal h3{color:#d63638;margin-bottom:15px}
.gdpr-modal-buttons{margin-top:20px;display:flex;gap:15px;justify-content:center}
.gdpr-confirm{
  background:#d63638!important;
  border-color:#d63638!important;
  color:#fff!important;
  padding:10px 20px;
  font-weight: bold !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 6px rgba(214, 54, 56, 0.2) !important;
}

.gdpr-cancel{
  background:#f0f0f1!important;
  border-color:#c3c4c7!important;
  color:#50575e!important;
  padding:10px 20px;
  font-weight: bold !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.gdpr-confirm:hover{
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(214, 54, 56, 0.3) !important;
}

.gdpr-cancel:hover{
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
}

/* Schema Validation */
.schema-validation{margin:20px 0;padding:15px;background:#f0f6fc;border:1px solid #0969da;border-radius:8px}
.schema-validation h4{margin:0 0 10px 0;color:#0969da}
.schema-validation.error{background:#fdf2f2;border-color:#d63638}
.schema-validation.error h4{color:#d63638}
.schema-validation ul{margin:10px 0;padding-left:20px}
.schema-validation .success{color:#0969da;font-weight:bold}
.schema-validation .error{color:#d63638;font-weight:bold}

/* Contact Form Styles for Anonymous Users */
.contact-form-row {
    margin-bottom: 1rem;
}

.contact-form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.contact-form-row input,
.contact-form-row textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.contact-form-row input:focus,
.contact-form-row textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.contact-form-row input:required:invalid {
    border-color: #d63638;
}

.contact-form-row input:required:valid {
    border-color: #00a32a;
}

/* Enhanced Modal sizing for forms */
.imm-contact-modal {
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .imm-contact-modal {
        width: 95%;
        max-width: none;
    }
    
    .contact-form-row input,
    .contact-form-row textarea {
        padding: 0.5rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Band Category Selection Modal */
.band-category-select {
    font-size: 14px;
    line-height: 1.5;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 35px !important;
}

@media (max-width: 768px) {
    .gdpr-modal-content {
        width: 95%;
        max-width: none;
        padding: 20px;
        margin: 10px;
    }

    .gdpr-modal h3 {
        font-size: 1.2rem;
    }

    .band-category-select {
        font-size: 16px !important; /* Prevent zoom on iOS */
        padding: 12px !important;
        padding-right: 40px !important;
    }

    .gdpr-modal-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .gdpr-modal-buttons button {
        width: 100%;
        padding: 14px 20px !important;
    }
}

/* Contact Request Modal */
.imm-contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imm-contact-modal {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.imm-contact-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.imm-contact-modal-header h3 {
    margin: 0;
    color: #333;
}

.imm-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.imm-contact-modal-body {
    padding: 20px;
}

.imm-contact-modal-body p {
    margin: 0 0 15px 0;
    color: #555;
}

.imm-contact-modal-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.imm-contact-modal-body textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box;
}

.imm-contact-modal-body textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0,124,186,0.2);
}

.imm-send-copy-option {
    padding: 0 20px 15px 20px;
}

.imm-send-copy-option label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.imm-send-copy-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.imm-contact-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.imm-modal-cancel,
.imm-modal-send {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
}

.imm-modal-cancel {
    background: #f5f5f5;
    color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.imm-modal-cancel:hover {
    background: #e0e0e0;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
}

.imm-modal-send {
    background: #007cba;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 124, 186, 0.2) !important;
}

.imm-modal-send:hover {
    background: #005a8b;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(0, 124, 186, 0.3) !important;
}