/* Modern Clean Style Variables */
:root {
    --primary-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #343a40;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --accent-color: #ffc107;
    --accent-hover: #ffca2c;
    --input-focus-border: #ffeeba;
    --input-focus-shadow: rgba(255, 193, 7, 0.25);
}

/* Sections Divider */
.form-divider {
    height: 1px;
    background: #f1f3f5;
    margin: 2rem 0;
}

/* Tag Input Styling */
.tag-input-container {
    min-height: 48px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 5px 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    cursor: text;
    background: #fff;
}

.tag-input-container:hover {
    border-color: #adafae;
}

.tag-pill {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.tag-pill i {
    margin-left: 6px;
    font-size: 0.75rem;
    color: #856404;
    cursor: pointer;
    opacity: 0.7;
}

.tag-pill i:hover {
    opacity: 1;
}

.placeholder-text {
    color: #adb5bd;
    font-style: italic;
}

/* Custom Dropdown */
.subject-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 1050;
}

.dropdown-item-subject {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    font-size: 0.95rem;
}

.dropdown-item-subject:hover {
    background-color: #fff3cd;
    color: #856404;
}

/* Teaching Images */
.photo-card {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: transform 0.2s;
}

.add-photo-btn {
    border: 2px dashed #ffc107;
    background-color: #fffdf5;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
}

.add-photo-btn:hover {
    background-color: #fff8e1;
}

/* Sortable Ghost (Drag Effect) */
.sortable-ghost {
    opacity: 0.5;
}

/* Degree Form Sub-section */
.degree-form {
    background: #fbfbfb;
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    border-radius: 0 4px 4px 0;
    margin-top: 15px;
}

.alert-degree-title {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
    display: block;
}

.required-asterisk {
    color: #dc3545;
    margin-left: 2px;
}

/* Contact Section */
.contact-section {
    text-align: center;
    padding: 30px 0 0;
}

/* ===========================
   Modern Modal Styling
   =========================== */

.modern-modal {
    border: none;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modern-modal .modal-header {
    padding: 1.5rem 1.5rem 0;
    position: relative;
}

.modern-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    color: #6c757d;
    opacity: 0.6;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
}

.modern-close:hover {
    opacity: 1;
    background: #f8f9fa;
    transform: rotate(90deg);
}

.modal-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.modal-icon-wrapper.privacy-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.3);
}

.modal-icon-wrapper i {
    font-size: 2.5rem;
    color: white;
}

.modal-main-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 1rem;
    color: #718096 !important;
    font-weight: 400;
}

.modern-modal .modal-body {
    padding: 2rem 3rem;
    line-height: 1.8;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.modern-modal .modal-body::-webkit-scrollbar {
    width: 8px;
}

.modern-modal .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modern-modal .modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.modern-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.modern-modal hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
}

.terms-content,
.privacy-content {
    color: #4a5568;
    font-size: 0.95rem;
}

.terms-content h1,
.privacy-content h1,
.terms-content h2,
.privacy-content h2,
.terms-content h3,
.privacy-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2d3748;
    font-weight: 600;
}

.terms-content h1,
.privacy-content h1 {
    font-size: 1.5rem;
}

.terms-content h2,
.privacy-content h2 {
    font-size: 1.3rem;
}

.terms-content h3,
.privacy-content h3 {
    font-size: 1.1rem;
}

.terms-content p,
.privacy-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.terms-content ul,
.privacy-content ul,
.terms-content ol,
.privacy-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.terms-content li,
.privacy-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.terms-content strong,
.privacy-content strong {
    color: #2d3748;
    font-weight: 600;
}

.modern-modal .modal-footer {
    padding: 0 3rem 2rem;
    justify-content: center;
}

.btn-modern-close {
    padding: 0.75rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #4a5568;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.btn-modern-close:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Modal Animation */
.modal.fade .modern-modal {
    transform: scale(0.9) translateY(-50px);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show .modern-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .modern-modal .modal-body {
        padding: 1.5rem;
    }

    .modern-modal .modal-footer {
        padding: 0 1.5rem 1.5rem;
    }

    .modal-main-title {
        font-size: 1.5rem;
    }

    .modal-icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .modal-icon-wrapper i {
        font-size: 2rem;
    }
}
