* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Hind Siliguri', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e1e5eb;
}

header {
    background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    color: white;
    padding: 30px;
    text-align: center;
    border-bottom: 5px solid #ff6b6b;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 40px;
    color: #ffd166;
}

header h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-top: 5px;
    font-weight: 300;
}

.form-container {
    padding: 30px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.form-section {
    background: #f8fafc;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.form-section:hover {
    transform: translateY(-2px);
}

.form-section h3 {
    color: #1a2980;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #26d0ce;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2d3748;
    font-size: 16px;
}

input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: white;
    color: #333;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
    outline: none;
    border-color: #26d0ce;
    box-shadow: 0 0 0 3px rgba(38, 208, 206, 0.2);
}

.phone-entry {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr auto;
    gap: 12px;
    margin-bottom: 15px;
    align-items: center;
}

.phone-entry .relationship {
    grid-column: 1 / -1;
}

.btn-remove-phone {
    background: #ff6b6b;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-phone:hover {
    background: #ff4757;
    transform: scale(1.1);
}

.btn-add {
    background: linear-gradient(135deg, #26d0ce 0%, #1a2980 100%);
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(26, 41, 128, 0.2);
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 41, 128, 0.3);
}

.select-with-add {
    display: flex;
    gap: 12px;
    align-items: center;
}

.select-with-add select {
    flex: 1;
}

.btn-add-small {
    background: #4ecdc4;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.btn-add-small:hover {
    background: #26d0ce;
    transform: rotate(90deg);
}

.add-form {
    margin-top: 20px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.add-form-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.add-form-header h4 {
    color: #1a2980;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.add-form-header p {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.add-form input {
    margin-bottom: 20px;
}

.add-form-buttons {
    display: flex;
    gap: 15px;
}

.btn-save, .btn-cancel {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.btn-save {
    background: linear-gradient(135deg, #26d0ce 0%, #1a2980 100%);
    color: white;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 41, 128, 0.3);
}

.btn-cancel {
    background: #ff6b6b;
    color: white;
}

.btn-cancel:hover {
    background: #ff4757;
    transform: translateY(-2px);
}

.fee-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.fee-option {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fee-option:hover {
    border-color: #26d0ce;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.fee-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
}

.password-input {
    position: relative;
}

.btn-toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
}

.password-hint {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(26, 41, 128, 0.3);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(26, 41, 128, 0.4);
}

.btn-reset {
    width: 100%;
    background: #94a3b8;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-reset:hover {
    background: #64748b;
    transform: translateY(-2px);
}

.message {
    padding: 20px;
    border-radius: 12px;
    margin-top: 25px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    display: none;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #155724;
    display: block;
}

.message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #721c24;
    display: block;
}

.info-box {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #cbd5e1;
    height: fit-content;
}

.info-box h4 {
    color: #1a2980;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    padding-bottom: 15px;
    border-bottom: 2px solid #26d0ce;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.stat-item .stat-label {
    color: #4a5568;
    font-weight: 500;
}

.stat-item .stat-value {
    background: #1a2980;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

footer {
    background: #1a2937;
    color: white;
    padding: 25px;
    text-align: center;
    border-top: 5px solid #26d0ce;
}

footer p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-note {
    font-size: 14px;
    opacity: 0.7;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 900px) {
    .form-container {
        grid-template-columns: 1fr;
    }
    
    .phone-entry {
        grid-template-columns: 1fr 2fr auto;
    }
    
    .phone-entry .relationship {
        grid-column: 1 / -1;
    }
    
    .fee-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .container {
        border-radius: 15px;
    }
    
    header {
        padding: 25px 20px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .phone-entry {
        grid-template-columns: 1fr;
    }
    
    .select-with-add {
        flex-direction: column;
    }
    
    .btn-add-small {
        width: 100%;
    }
}