/* FORM PENDAFTARAN STYLES */

/* Container */
.fp-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Form Wrapper */
.fp-form-wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5eb;
}

/* Title */
.fp-title {
    color: #2d3748;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 30px 0;
    text-align: center;
    line-height: 1.3;
}

/* Form */
.fp-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Form Group */
.fp-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Labels */
.fp-label {
    color: #4a5568;
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.fp-label::after {
    content: " *";
    color: #e53e3e;
}

/* Input Fields */
.fp-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.5;
    color: #2d3748;
    background-color: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.fp-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.fp-input::placeholder {
    color: #a0aec0;
}

.fp-input.error {
    border-color: #fc8181;
    background-color: #fff5f5;
}

/* Error Messages */
.fp-error {
    color: #e53e3e;
    font-size: 13px;
    font-weight: 500;
    margin-top: 4px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.fp-error.show {
    display: block;
}

/* Submit Button */
.fp-submit-btn {
    background: linear-gradient(135deg, #1B5E20 0%, #4CAF50 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

.fp-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4CAF50 0%, #1B5E20 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.2);
}

.fp-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.fp-submit-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

/* Button Text & Spinner */
.fp-btn-text {
    display: block;
}

.fp-spinner {
    display: none;
}

.fp-spinner-dot {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

/* Response Message */
.fp-response {
    margin-top: 25px;
    padding: 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    display: none;
    animation: slideIn 0.3s ease;
}

.fp-response.success {
    display: block;
    background-color: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #276749;
}

.fp-response.error {
    display: block;
    background-color: #fff5f5;
    border: 1px solid #fc8181;
    color: #c53030;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .fp-container {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .fp-form-wrapper {
        padding: 30px 20px;
    }
    
    .fp-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .fp-input {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .fp-submit-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .fp-form-wrapper {
        padding: 25px 15px;
    }
    
    .fp-title {
        font-size: 20px;
    }
    
    .fp-form {
        gap: 20px;
    }
}