/* Modern Form Styles for MediKL */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
}

/* Main Container */
.custom-form {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    padding: 0;
    overflow: hidden;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Header */
.custom-form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px 30px;
    text-align: center;
    border-radius: 0;
    margin: 0;
}

.custom-form-header img {
    width: 60px;
    height: auto;
    margin-bottom: 15px;
    background-color: white;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.custom-form-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.custom-form-header strong {
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Form Container */
.w3-container {
    padding: 40px 30px;
}

form.w3-container {
    padding: 40px 30px 30px;
}

/* Form Labels */
label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

/* Form Inputs */
.w3-input,
.w3-select {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    color: #333;
}

.w3-input:focus,
.w3-select:focus {
    outline: none;
    border-color: #667eea;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.w3-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Buttons */
.w3-button {
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 10px 5px 0 0;
}

.w3-button.w3-orange {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(250, 112, 154, 0.3);
}

.w3-button.w3-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 112, 154, 0.4);
}

.w3-button.w3-pink {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.w3-button.w3-pink:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
}

.w3-round-large {
    border-radius: 50px;
}

/* Alert Panels */
.w3-panel {
    padding: 20px 30px;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.w3-panel h3 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.w3-panel p {
    margin: 10px 0;
    line-height: 1.8;
}

.w3-panel ul {
    margin: 15px 0;
    padding-left: 25px;
}

.w3-panel ul li {
    margin: 10px 0;
    line-height: 1.8;
}

.w3-panel.w3-red {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
}

.w3-panel.w3-green {
    background: linear-gradient(135deg, #51cf66 0%, #37b24d 100%);
    color: #fff;
}

.w3-panel.w3-teal {
    background: linear-gradient(135deg, #3bc9db 0%, #1098ad 100%);
    color: #fff;
}

/* Center Alignment */
.w3-center {
    text-align: center;
}

/* Card Styling */
.w3-card-4 {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Strong Text */
strong, b {
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .custom-form {
        border-radius: 15px;
    }
    
    .custom-form-header {
        padding: 30px 20px;
    }
    
    .custom-form-header h2 {
        font-size: 1.4rem;
    }
    
    .custom-form-header img {
        width: 50px;
    }
    
    .w3-container,
    form.w3-container {
        padding: 30px 20px;
    }
    
    .w3-panel {
        padding: 15px 20px;
    }
    
    .w3-button {
        width: 100%;
        margin: 10px 0 0 0;
    }
}

@media (max-width: 480px) {
    .custom-form-header h2 {
        font-size: 1.2rem;
    }
    
    .custom-form-header img {
        width: 40px;
    }
    
    .w3-input,
    .w3-select {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    label {
        font-size: 0.9rem;
    }
    
    .w3-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Loading Animation */
.w3-button:active {
    transform: scale(0.98);
}

/* Success Message Styling */
.w3-panel.w3-green b,
.w3-panel.w3-green strong {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Input Validation States */
.w3-input:invalid:not(:placeholder-shown) {
    border-color: #ff6b6b;
}

.w3-input:valid:not(:placeholder-shown) {
    border-color: #51cf66;
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}
