* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7f9;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #2c7be5;
}

.homepage-link {
    text-decoration: none;
    color: #2c7be5;
}

.homepage-link:hover {
    text-decoration: underline;
}
.form-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1rem;
}
@media screen and (max-width: 600px) {
    .form-actions {
        flex-direction: column;
    }
}
.btn-checkout {
    width: 100%;
    text-align: center;
    text-wrap: nowrap;
}
.btn-home {
    text-decoration: none;
    background-color: green;
    color: white;
    width: 100%;
    text-align: center;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    transition: background 0.3s;
}
.btn-reset {
    text-decoration: none;
    background-color: red;
    color: white;
    width: 100%;
    text-align: center;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    transition: background 0.3s;
}
.btn-home:hover {
    background-color: rgb(1, 99, 1);
}
.btn-reset:hover {
    background-color: rgb(184, 0, 0);
}
.header h1 {
    color: #2c7be5;
    margin-bottom: 10px;
}

.header p {
    color: #666;
}

.form-section {
    margin-bottom: 25px;
}

.section-title {
    background-color: #f0f5ff;
    padding: 10px 15px;
    border-left: 4px solid #2c7be5;
    margin-bottom: 20px;
    font-weight: 600;
    color: #2c7be5;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 15px;
}

.form-group {
    flex: 1 0 calc(50% - 20px);
    margin: 0 10px 15px;
    min-width: 250px;
}

.form-group-full {
    flex: 1 0 calc(100% - 20px);
}

label {
    display: block;
    font-weight: 500;
    color: #444;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #2c7be5;
    outline: none;
    box-shadow: 0 0 0 2px rgba(44, 123, 229, 0.2);
}

.required::after {
    content: ' *';
    color: #e53935;
}

.btn-submit {
    background-color: #2c7be5;
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: #1a68d1;
}

.terms-container {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terms-checkbox input {
    width: auto;
}

.terms-label {
    cursor: pointer;
    font-weight: 500;
}

.terms-link {
    color: #2c7be5;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-modal:hover {
    color: #000;
}

.terms-content {
    line-height: 1.6;
}

.terms-content h2 {
    color: #2c7be5;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.terms-content h3 {
    margin: 20px 0 10px;
    color: #444;
}

.terms-content p {
    margin-bottom: 15px;
}

.terms-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.error-message {
    color: #e53935;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

@media (max-width: 600px) {
    .form-group {
        flex: 1 0 calc(100% - 20px);
    }

    .container {
        padding: 20px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }
}
