.modal-dialog.modal-md {
    max-width: 500px;
}

.custom-modal {
    border-radius: 12px;
    border: none;
    background: #f7fafc;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background: #e6fffb;
    color: #2d3748;
    border-bottom: none;
    padding: 15px 20px;
    position: relative;
}

.custom-close {
    background: none;
    border: none;
    font-size: 16px;
    color: #2d3748;
    transition: color 0.3s ease;
}

.custom-close:hover {
    color: #4a5568;
}

.modal-title {
    font-family: "Inter", sans-serif;
    font-size: 22px;
    margin: 0;
    color: #48bb78;
    letter-spacing: 1px;
}

.modal-body {
    padding: 20px;
}

.custom-form .form-group {
    margin-bottom: 15px;
    position: relative;
}

.custom-form label {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: #000000;
    margin-bottom: 6px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.custom-form .info-icon {
    font-size: 14px;
    cursor: pointer;
}

.custom-form .form-control.custom-input {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    background: #ffffff;
    font-size: 14px;
    color: #2d3748;
    transition: border-color 0.3s ease;
}

.custom-form select.custom-select {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    background: #ffffff;
    font-size: 14px;
    color: #2d3748;
    transition: border-color 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%232d3748' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 30px;
}

.custom-form .form-control.custom-input:focus,
.custom-form select.custom-select:focus {
    border-color: #2a69a6;
    outline: none;
}

.custom-form .custom-file-input {
    border-radius: 10px;
    overflow: hidden;
}

.custom-form .custom-file-input .form-control {
    border: none;
    background: #f8f9fa;
    padding: 10px 12px;
    height: 43px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    font-size: 14px;
}

.custom-form .custom-file-btn {
    background: #ececec;
    color: #000;
    border: none;
    border-radius: 0 10px 10px 0;
    padding: 10px 12px;
    transition: background 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.12);
    font-weight: normal;
}

.custom-form .form-text {
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
}

.modal-footer {
    border-top: none;
    padding: 10px;
    background: #f7fafc;
    text-align: center;
}

.custom-submit {
    width: 100%;
    background: var(--primary-color)!important;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 18px!important;
    font-weight: 600!important;
    font-family: "Inter", sans-serif;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, transform 0.3s ease;
}

.custom-submit:hover {
    background: #38a169 !important;
    transform: translateY(-2px);
}

.custom-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.custom-submit:active::before {
    width: 200px;
    height: 200px;
}

.custom-signin {
    color:  var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.custom-signin:hover {
    color: #38a169;
    text-decoration: underline;
}

.success-message {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    animation: fadeIn 0.5s ease-in-out;
    background: none;
}

.success-icon {
    font-size: 40px;
    margin-bottom: 10px;
    color: #48bb78;
}

.success-message h3 {
    color: #48bb78;
    font-size: 24px;
    margin-bottom: 10px;
}

.success-message p {
    color: #2d3748;
    font-size: 16px;
}

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

@media (max-width: 768px) {
    .modal-dialog.modal-md {
        max-width: 400px;
    }
    .custom-form .form-control.custom-input,
    .custom-form select.custom-select {
        font-size: 13px;
        padding: 8px 10px;
    }
    .custom-submit {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .modal-dialog.modal-md {
        max-width: 320px;
    }
    .custom-form .form-group {
        margin-bottom: 12px;
    }
    .custom-form label {
        font-size: 13px;
    }
    .custom-form .form-control.custom-input,
    .custom-form select.custom-select {
        font-size: 12px;
        padding: 6px 8px;
    }
    .custom-submit {
        font-size: 14px;
    }
    .custom-signin {
        font-size: 13px;
    }
    .success-message h3 {
        font-size: 20px;
    }
    .success-message p {
        font-size: 14px;
    }
}