/**
 * Terms Modal & Warning Box Styles
 * TCHAJ-TI-CCHUAN.CZ Registration System
 */

/* Terms Warning Button - Clickable Whole Box */
.terms-warning-button {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    color: white;
    padding: 0.8em;
    margin: 0.5em 0;
    border-radius: 6px;
    text-align: center;
    animation: pulse 2s infinite;
    border: 2px solid #fff;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    font-size: 0.85em;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.terms-warning-button:hover {
    background: linear-gradient(135deg, #d63447 0%, #ff5570 100%);
    transform: scale(1.02);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(231, 76, 60, 0.5);
    }
    50% {
        box-shadow: 0 4px 30px rgba(231, 76, 60, 0.8);
    }
}

/* Terms Checkbox */
.terms-checkbox {
    margin: 1em 0;
    padding: 0.8em;
    background: rgba(233, 69, 96, 0.1);
    border-radius: 5px;
    border: 1px solid rgba(233, 69, 96, 0.3);
    font-size: 1em;
}

.terms-checkbox label {
    display: flex;
    align-items: center;
    gap: 0.8em;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.terms-checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #e94560;
}

.terms-checkbox a {
    color: #e94560;
    text-decoration: underline;
    font-weight: bold;
}

.terms-checkbox a:hover {
    color: #ff5570;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin: 2% auto;
    padding: 0;
    border: 1px solid rgba(233, 69, 96, 0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideDown 0.3s;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    color: #e94560;
    padding: 1.5em;
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 1.5em;
}

.modal-body {
    padding: 2em;
    overflow-y: auto;
    flex: 1;
    color: rgba(255,255,255,0.8);
}

.terms-section {
    margin-bottom: 2em;
}

.terms-section h3 {
    color: #e94560;
    margin-bottom: 0.8em;
    font-size: 1.2em;
}

.terms-section ul {
    list-style: none;
    padding-left: 0;
}

.terms-section ul li {
    margin-bottom: 0.5em;
    padding-left: 1.5em;
    position: relative;
}

.terms-section ul li:before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.terms-section p {
    line-height: 1.6;
}

.terms-section strong {
    color: #e94560;
}

.price-highlight {
    font-size: 2em;
    font-weight: bold;
    color: #e94560;
    text-align: center;
    margin: 0.5em 0;
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 0.5em 1em;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
    color: #e94560;
}

.modal-footer {
    padding: 1.5em;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.modal-btn {
    background: linear-gradient(135deg, #e94560 0%, #d63447 100%);
    color: white;
    /* padding: 15px 40px; */
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    background: linear-gradient(135deg, #d63447 0%, #c92a42 100%);
    transform: scale(1.05);
}

/* Mobile responsive */
@media screen and (max-width: 736px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }

    .modal-body {
        padding: 1.5em 1em;
    }

    .terms-warning {
        padding: 1em;
        font-size: 0.9em;
    }

    .terms-button {
        padding: 0.7em 1.2em;
        font-size: 0.9em;
    }

    .terms-checkbox {
        padding: 0.8em;
    }

    .terms-checkbox label {
        font-size: 0.9em;
    }

    .modal-content h2 {
        font-size: 1.2em;
        padding: 1em;
    }

    .terms-section h3 {
        font-size: 1em;
    }
}

/* Tablet */
@media screen and (min-width: 737px) and (max-width: 1024px) {
    .modal-content {
        width: 85%;
    }
}
