/* Policy Page Styles */

/* Navbar Styles */
.navbar {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 2px solid #000;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar .nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.navbar .nav-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.navbar .nav-links a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.navbar .nav-links a:hover {
    border-bottom-color: #000;
}

.navbar .nav-links a.active {
    border-bottom-color: #000;
    font-weight: 700;
}

/* Footer Styles */
.footer {
    background: #000;
    color: #fff;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer p {
    margin: 0.5rem 0;
    color: #ccc;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ccc;
}

.policy-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px 60px;
    background: #ffffff;
    border-radius: 8px;
}

.policy-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #000;
}

.policy-header h1 {
    color: #333;
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: 600;
}

.policy-header p {
    color: #666;
    font-size: 1.1em;
    font-style: italic;
}

/* Waiver Form Styles */
.waiver-form {
    margin-bottom: 40px;
}

.form-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    color: #000;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.section-content {
    color: #555;
    line-height: 1.8;
    font-size: 1em;
}

.section-content p {
    margin-bottom: 12px;
    text-align: justify;
}

.section-content p:last-child {
    margin-bottom: 0;
}

.subsection-label {
    font-weight: 500;
    color: #333;
    margin-top: 15px !important;
}

/* Fees Table Placeholder */
.fees-table-placeholder {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 20px;
    margin: 15px 0;
    overflow-x: auto;
}

.fees-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.fees-table thead {
    background-color: #000;
    color: white;
}

.fees-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #ddd;
}

.fees-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.fees-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.fees-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.fees-table tbody tr:hover {
    background-color: #f0f0f0;
}

/* Signature Section */
.signature-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #000;
    border-bottom: none;
}

.signature-content {
    font-size: 1.05em;
    color: #333;
    line-height: 2;
}

.agreement-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.agreement-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #000;
    flex-shrink: 0;
}

.agreement-checkbox span {
    user-select: none;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: #000;
    color: white;
}

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background-color: #d0d0d0;
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .policy-container {
        margin: 20px auto;
        padding: 20px;
    }

    .policy-header h1 {
        font-size: 1.8em;
    }

    .section-title {
        font-size: 1.1em;
    }

    .section-content {
        font-size: 0.95em;
    }

    .signature-input-container .radio-label {
        width: 200px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .policy-container {
        padding: 15px;
        margin: 10px auto;
    }

    .policy-header h1 {
        font-size: 1.5em;
    }

    .policy-header p {
        font-size: 0.95em;
    }

    .section-title {
        font-size: 1em;
    }

    .section-content {
        font-size: 0.9em;
        line-height: 1.6;
    }

    .signature-content {
        font-size: 0.95em;
    }

    .signature-input-container .radio-label {
        width: 150px;
        font-size: 0.85em;
    }
}

/* Policy Image Styles */
.policy-image-container {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 2px dashed #000;
}

.policy-image {
    max-width: 200px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

.policy-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.image-caption {
    margin-top: 10px;
    color: #000;
    font-weight: 500;
    font-size: 0.9em;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.modal-header {
    background-color: #000;
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close:hover {
    color: #f0f0f0;
}

.modal-body {
    padding: 25px;
    line-height: 1.6;
    color: #333;
}

.modal-body p {
    margin-bottom: 15px;
    font-size: 1em;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-body strong {
    color: #000;
    font-weight: 600;
}

/* Modal Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .navbar,
    .footer,
    .form-actions,
    .policy-image-container,
    .modal {
        display: none;
    }

    .policy-container {
        max-width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    .form-section {
        page-break-inside: avoid;
    }

    .section-content {
        color: #000;
    }

    .signature-input-container input[type="radio"] {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}
