* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.main-header {
    background: #00a1b3;
    color: white;
    padding: 30px;
    text-align: center;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.main-header h1 {
    font-size: 2.5em;
    font-weight: bold;
}

form {
    background: white;
    padding: 30px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.section:last-of-type {
    border-bottom: none;
}

h2 {
    color: #00a1b3;
    margin-bottom: 20px;
    font-size: 1.3em;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #00a1b3;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group.half {
    flex: 1;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 5px;
    width: 18px;
    height: 18px;
}

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

.info {
    background: #e3f2fd;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    color: #1976d2;
}

.warning {
    background: #fff3e0;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    color: #f57c00;
    font-size: 0.9em;
}

.file-preview {
    margin-top: 10px;
}

.file-item {
    padding: 8px;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.file-error {
    background: #ffebee;
    color: #c62828;
}

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

.error {
    background: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.submit-btn {
    width: 100%;
    padding: 20px;
    background: #00a1b3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
}

.submit-btn:hover {
    background: #008a99;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 50px;
    border-radius: 8px;
    text-align: center;
    max-width: 600px;
    width: 90%;
}

.modal-content h1 {
    color: #00a1b3;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #555;
}

.attachments-summary {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: left;
}

.attachments-summary h3 {
    margin-bottom: 15px;
    color: #333;
}

.attachments-summary ul {
    list-style: none;
}

.attachments-summary li {
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

.attachments-summary li:before {
    content: "✓ ";
    color: #4caf50;
    font-weight: bold;
}

.redirect-btn {
    padding: 15px 40px;
    background: #00a1b3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.redirect-btn:hover {
    background: #008a99;
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading-overlay.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #00a1b3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }
    
    .main-header h1 {
        font-size: 1.8em;
    }
}
