.agreement-container {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.agreement-header {
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.agreement-header h2 {
    color: var(--primary-dark);
    font-size: 28px;
    margin-bottom: 10px;
}

.agreement-body {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 15px;
}

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

.agreement-body::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 4px;
}

.agreement-body::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

.agreement-section {
    margin-bottom: 25px;
}

.agreement-section h3 {
    color: var(--primary-dark);
    font-size: 18px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--medium-gray);
}

.agreement-section p, .agreement-section ul {
    margin-bottom: 10px;
}

.agreement-section ul {
    padding-left: 20px;
}

.agreement-section li {
    margin-bottom: 8px;
}

.agreement-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed var(--medium-gray);
}

.form-container {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.form-header {
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.form-header h2 {
    color: var(--primary-dark);
    font-size: 28px;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-dark);
}

input, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(191, 48, 31, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin: 30px 0;
    padding: 20px;
    background-color: rgba(191, 48, 31, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
}

.checkbox-input {
    width: auto;
    margin-right: 15px;
    margin-top: 5px;
    transform: scale(1.3);
}

.checkbox-label {
    font-weight: normal;
    margin-bottom: 0;
}

.checkbox-label a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.required-field::after {
    content: " *";
    color: var(--primary-red);
}

.submit-btn {
    background-color: var(--primary-red);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    background-color: #a0281a;
    transform: translateY(-2px);
}

.submit-btn:disabled {
    background-color: var(--medium-gray);
    cursor: not-allowed;
    transform: none;
}

.form-note {
    font-size: 14px;
    color: var(--dark-gray);
    margin-top: 20px;
    text-align: center;
}

.form-note a {
    color: var(--primary-red);
    text-decoration: none;
}

.form-note a:hover {
    text-decoration: underline;
}

footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 30px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.copyright {
    opacity: 0.8;
    font-size: 14px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-icon {
    font-size: 60px;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.modal h3 {
    color: var(--primary-dark);
    font-size: 24px;
    margin-bottom: 15px;
}

.modal p {
    margin-bottom: 25px;
    font-size: 16px;
}

.modal-data {
    text-align: left;
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-family: monospace;
    font-size: 14px;
}

.modal-btn {
    background-color: var(--primary-dark);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
}

.modal-btn:hover {
    background-color: #333;
}

.error-message {
    color: var(--primary-red);
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .operator-info {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .agreement-container, .form-container {
        padding: 20px;
    }
}

.current-date {
    font-weight: bold;
    color: var(--primary-red);
}