/* Premium Styling for Case Registration Page */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

.case-register-body {
    font-family: 'Outfit', sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    min-height: 100vh;
}

/* Header Section */
.case-register-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 5rem 0 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.case-register-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.case-register-header h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.case-register-header p {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* Form Container */
.case-register-container {
    max-width: 800px;
    margin: -2.5rem auto 5rem auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.case-register-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 3rem;
    transition: all 0.3s ease;
}

.case-register-card:hover {
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.08), 0 15px 15px -5px rgba(0, 0, 0, 0.03);
}

.case-register-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 2px solid #eff6ff;
    padding-bottom: 1rem;
}

/* Form Groups & Inputs */
.form-fields-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.form-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field-group label {
    font-size: 0.925rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.form-field-group label .required-star {
    color: #ef4444;
}

.form-field-group input[type="text"],
.form-field-group input[type="tel"],
.form-field-group select,
.form-field-group textarea {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #0f172a;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.form-field-group input[type="text"]:focus,
.form-field-group input[type="tel"]:focus,
.form-field-group select:focus,
.form-field-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.form-field-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25em;
    padding-right: 2.5rem;
}

.form-field-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Premium Drag and Drop File Upload */
.premium-upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.premium-upload-zone:hover,
.premium-upload-zone.dragover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.premium-upload-icon {
    color: #3b82f6;
    background: #dbeafe;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.premium-upload-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.premium-upload-desc {
    font-size: 0.825rem;
    color: #64748b;
    margin: 0;
    max-width: 320px;
    line-height: 1.4;
}

/* File list */
.selected-files-container {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.selected-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.875rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    animation: slideIn 0.2s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.file-info-col {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #334155;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.file-info-col i {
    color: #64748b;
}

.file-delete-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.file-delete-btn:hover {
    color: #ef4444;
    background-color: #fee2e2;
}

/* Submit Button styling */
.premium-submit-btn {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2), 0 2px 4px -1px rgba(59, 130, 246, 0.1);
}

.premium-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3), 0 4px 6px -2px rgba(59, 130, 246, 0.15);
}

.premium-submit-btn:active {
    transform: translateY(0);
}

/* Success Card styling */
.success-container {
    max-width: 600px;
    margin: 5rem auto;
    padding: 0 1.5rem;
}

.success-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid #cbd5e1;
    padding: 4rem 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.success-icon-circle {
    background: #d1fae5;
    color: #10b981;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    animation: scaleUp 0.3s ease-out;
}

@keyframes scaleUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-card h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #065f46;
    margin: 0;
}

.success-card p {
    font-size: 1.05rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
    max-width: 400px;
}

.success-back-btn {
    font-family: 'Outfit', sans-serif;
    background: #0f172a;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.success-back-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
}
