* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #d1d1d1 0%, #978f8f 50%, #4b4646 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #c8453c 0%, #a83832 100%);
    color: white;
    padding: 30px 30px 20px;
    text-align: center;

    img {
        width: 100px;
    }

    h1 {
        font-size: 24px;
        margin-bottom: 10px;
        font-weight: bold;
    }

    .header-info {
        margin-top: 20px;
        font-size: 1em;
    }

    .header-title {
        display: flex;
        align-items: center;
        justify-content: space-around;
        gap: 1rem;
        flex-wrap: wrap;
    }
}

.form-container {
    padding: 20px 30px 30px;

    h2 {
        font-size: 18px;
        font-weight: 500;
        color: #a1a1a1;
        text-align: center;
        margin-bottom: 1rem;
    }
}

.form-group {
    margin-bottom: 25px;
}

.subtitle{
    color: #a1a1a1;
    font-size: 0.8em;
    margin-bottom: 10px;
    font-weight: 500;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 0.95em;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #c8453c;
    background: white;
    box-shadow: 0 0 0 3px rgba(200, 69, 60, 0.1);
}

select {
    cursor: pointer;
}

.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-input {
    position: absolute;
    left: -9999px;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    border: 2px dashed #c8453c;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fdf2f1;
    color: #c8453c;
    font-weight: bold;
    min-height: 120px;
    text-align: center;
}

.file-label:hover {
    background: #f5e6e5;
    border-color: #a83832;
    transform: translateY(-2px);
}

.file-label.has-file {
    background: #e8f5e8;
    border-color: #4caf50;
    color: #2e7d32;
    padding: 20px 15px;
    min-height: auto;
}

.file-label.drag-over {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
    opacity: 0.7;
}

.upload-text {
    font-size: 1.1em;
    margin-bottom: 5px;
}

.upload-hint {
    font-size: 0.9em;
    opacity: 0.8;
    font-weight: normal;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-preview {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
}

.payment-info {
    background: #dddddd;
    padding: 15px;
    margin: 1.5rem;
    border-radius: 10px;
    font-size: 1em;
    color: #333;
    margin-top: 10px;
    /* text-align: center; */

    .payment-details{
        text-align: left;
        /* margin-left: 1rem; */

        p {
            margin: 4px 0;
        }
    }
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #c8453c 0%, #a83832 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200, 69, 60, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading animation */
.loading {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.loading-dots {
    display: inline-flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #c8453c;
    animation: bounce 1.4s ease-in-out infinite both;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

.dot:nth-child(3) {
    animation-delay: 0;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

.success-message,
.error-message {
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    display: none;
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.footer-info {
    background: #f8f9fa;
    padding: 20px 30px;
    text-align: center;
    color: #6c757d;
    border-top: 1px solid #e9ecef;

    a {
        color: #c73800;
        text-decoration: none;
        font-weight: bold;
        margin: 12px 0;
        display: inline-block;
    }
}

@media (max-width: 640px) {
    body {
        padding: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .container {
        margin: 0;
        border-radius: 0;
    }

    .header {
        padding: 30px 20px;

        .header-title {
            flex-direction: column;
            align-items: center;

            img {
                width: 80px;
            }
        }

    }

    .header h1 {
        font-size: 1.8em;
    }

    .form-container {
        padding: 30px 20px;
    }
}