/* Общие стили */
body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    background-color: #f7f7f7;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header, footer {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    padding: 20px 0;
    text-align: center;
    color: #333;
}

header p {
    text-align: center;
    margin-top: -10px;
    color: #777;
}

main {
    padding: 40px 0;
}

h2 {
    text-align: center;
    color: #4CAF50;
    margin-bottom: 30px;
}

form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

fieldset {
    border: none;
    margin-bottom: 20px;
}

legend {
    font-weight: 500;
    font-size: 1.2em;
    color: #4CAF50;
    margin-bottom: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
}

.price-info {
    font-size: 1em;
    font-weight: bold;
    margin-top: 10px;
    color: #333;
}

.price-info.total {
    font-size: 1.4em;
    color: #4CAF50;
    text-align: center;
    margin-top: 20px;
}

.agreement label {
    display: flex;
    align-items: center;
}

.agreement input[type="checkbox"] {
    margin-right: 10px;
}

button {
    width: 100%;
    padding: 15px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #45a049;
}

/* Адаптивность */
@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
    }

    .checkbox-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    header h1 {
        font-size: 1.5em;
    }

    button {
        font-size: 16px;
    }
}

footer {
    padding: 20px 0;
    text-align: center;
    color: #777;
    font-size: 0.9em;
    margin-top: 40px;
}

.intro p {
    text-align: center;
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555;
}

.success-message, .error-message, .result-message {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.result-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
    background-color: #45a049;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.button:active {
    background-color: #3e8e41;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.actions .button {
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.actions .button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.actions .button:active {
    background-color: #3e8e41;
    transform: translateY(0);
}
