* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #164B79 0%, #0f324f 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    background: linear-gradient(135deg, #164B79 0%, #0f324f 100%);
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.logo {
    height: 150px;
    margin-bottom: 15px;
}

.header i { display: none; }

.header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.header p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.form {
    padding: 30px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.phone-input {
    display: flex;
    align-items: center;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.phone-input:focus-within {
    border-color: #164B79;
    box-shadow: 0 0 0 3px rgba(22, 75, 121, 0.15);
}

.country-code {
    background: #f8f9fa;
    padding: 15px 12px;
    color: #666;
    font-weight: 600;
    border-right: 1px solid #e1e5e9;
}

.phone-input input {
    flex: 1;
    border: none;
    padding: 15px 12px;
    font-size: 1rem;
    outline: none;
    background: white;
}

.help-text {
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-area {
    border: 2px dashed #e1e5e9;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fafbfc;
}

.file-upload-area:hover {
    border-color: #164B79;
    background: #f0f6fb;
}

.file-upload-area i {
    font-size: 2.5rem;
    color: #164B79;
    margin-bottom: 15px;
    display: block;
}

.file-upload-area p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.file-upload-area small {
    color: #666;
    font-size: 0.9rem;
}

.file-info {
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 15px;
    background: #f8f9fa;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-details i {
    color: #164B79;
    font-size: 1.2rem;
}

.file-text {
    flex: 1;
}

.file-name {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.file-size {
    color: #666;
    font-size: 0.9rem;
}

.remove-file {
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-file:hover {
    background: #ff3742;
    transform: scale(1.1);
}

.progress-container {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e1e5e9;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #164B79, #0f324f);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #164B79 0%, #0f324f 100%);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(22, 75, 121, 0.35);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn i {
    font-size: 1.1rem;
}

.status-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.status-message.loading {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: block;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .card {
        border-radius: 15px;
    }
    
    .header {
        padding: 25px 15px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .form {
        padding: 20px;
    }
    
    .file-upload-area {
        padding: 30px 15px;
    }
    
    .file-upload-area i {
        font-size: 2rem;
    }
    
    .submit-btn {
        padding: 18px 20px;
        font-size: 1rem;
    }
}

/* Loading animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading .submit-btn {
    animation: pulse 1.5s infinite;
}

/* File drag and drop */
.file-upload-area.dragover {
    border-color: #164B79;
    background: #f0f6fb;
    transform: scale(1.02);
}

/* Phone number formatting */
.phone-input input:focus {
    background: #f0f6fb;
}
