﻿/* General Reset and Body Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Form Container */
.form-container {
    max-width: 850px;
    margin: 30px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #4169E1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .form-container:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    }

/* Headings */
h1 {
    text-align: center;
    color: #4169E1;
    font-size: 2.2rem;
    margin-bottom: 30px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Section Divider */
.section-divider {
    margin: 25px 0;
    border-bottom: 3px solid #4169E1;
    text-align: center;
    position: relative;
}

    .section-divider span {
        background: #ffffff;
        padding: 0 20px;
        color: #4169E1;
        font-size: 1.2rem;
        font-weight: 600;
        text-transform: uppercase;
        position: relative;
        top: 10px;
    }

/* Input Group Styling */
.input-group {
    position: relative;
    margin-bottom: 15px;
}

    .input-group .input-group-text {
        background: #4169E1;
        color: #ffffff;
        border: 1px solid #4169E1;
        border-right: none;
        border-radius: 8px 0 0 8px;
        font-size: 1rem;
        padding: 10px;
        transition: background 0.3s ease;
    }

        .input-group .input-group-text:hover {
            background: #3051B0;
        }

    .input-group .form-control, .input-group .form-select, .input-group textarea {
        border: 1px solid #4169E1;
        border-radius: 0 8px 8px 0;
        padding: 10px;
        font-size: 0.95rem;
        color: #1f2937;
        background: #f8f9fa;
        transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    }

        .input-group .form-control:focus, .input-group .form-select:focus, .input-group textarea:focus {
            border-color: #3051B0;
            box-shadow: 0 0 8px rgba(65, 105, 225, 0.4);
            background: #ffffff;
            outline: none;
        }

/* Textarea Specific */
textarea.form-control {
    border-radius: 8px;
    border: 1px solid #4169E1;
}

/* Placeholder Styling */
.form-control::placeholder {
    color: #6b7280;
    font-style: italic;
    opacity: 0.7;
}

/* Required Field Indicator */
.required:after {
    content: " *";
    color: #dc2626;
    font-weight: bold;
    font-size: 1rem;
}

/* Error Messages */
.text-danger {
    font-size: 0.85rem;
    color: #dc2626;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

/* Alert Styling */
.alert-danger {
    background: #fff1f2;
    border: 1px solid #dc2626;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #991b1b;
    font-weight: 500;
}

/* Button Styling */
.btn-primary {
    background: #4169E1;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(65, 105, 225, 0.5);
        background: #3051B0;
    }

    .btn-primary:active {
        transform: translateY(0);
        box-shadow: 0 3px 8px rgba(65, 105, 225, 0.3);
    }

/* File Input Styling */
.form-control[type="file"] {
    padding: 10px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #4169E1;
    cursor: pointer;
    font-size: 0.95rem;
}

    .form-control[type="file"]::-webkit-file-upload-button {
        background: #4169E1;
        color: #ffffff;
        border: none;
        padding: 8px 15px;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 600;
        transition: background 0.3s ease;
    }

        .form-control[type="file"]::-webkit-file-upload-button:hover {
            background: #3051B0;
        }

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        padding: 20px;
        margin: 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .input-group .form-control, .input-group .form-select, .input-group textarea {
        font-size: 0.9rem;
        padding: 8px;
    }

    .input-group .input-group-text {
        font-size: 0.9rem;
        padding: 8px;
    }

    .btn-primary {
        padding: 10px 25px;
        font-size: 1rem;
    }

    .section-divider span {
        font-size: 1rem;
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .form-container {
        padding: 15px;
    }

    h1 {
        font-size: 1.6rem;
    }

    .input-group .form-control, .input-group .form-select, .input-group textarea {
        font-size: 0.85rem;
    }

    .btn-primary {
        padding: 8px 20px;
        font-size: 0.95rem;
    }
}

/* Animation for Form Load */
.form-container {
    animation: fadeInUp 0.5s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover and Focus Effects for Input Groups */
.input-group:hover .form-control,
.input-group:hover .form-select,
.input-group:hover textarea {
    border-color: #3051B0;
    box-shadow: 0 0 10px rgba(65, 105, 225, 0.3);
}

.input-group .form-control:focus,
.input-group .form-select:focus,
.input-group textarea:focus {
    border-color: #3051B0;
    box-shadow: 0 0 12px rgba(65, 105, 225, 0.5);
}
