/**
 * Forms CSS
 * File: forms.css
 */

/* Form Container */
.apm-form-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.apm-form-wrapper {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 450px;
    margin: 0 auto;
    border: 1px solid #e1e1e1;
}

.apm-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.apm-form-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
}

.apm-form-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Form Styling */
.apm-form {
    width: 100%;
}

#apm-contact-us-form .apm-form-group label {
	text-align: left;
}

#apm-request-info, #apm-contact-message {
	min-height: 160px;
}

.apm-form-group {
    margin-bottom: 20px;
    border-left: 3px solid #e5e7eb;
    padding-left: 10px;
}

.apm-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
}

.apm-form-group label .required {
    color: #e74c3c;
}

.apm-form-group input,
.apm-form-group select,
.apm-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.apm-form-group input:focus,
.apm-form-group select:focus,
.apm-form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.apm-form-group input.error,
.apm-form-group select.error,
.apm-form-group textarea.error {
    border-color: #e74c3c;
}

.apm-form-group input.success,
.apm-form-group select.success,
.apm-form-group textarea.success {
    border-color: #2ecc71;
}

/* Error and Success Messages */
.apm-error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.apm-success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px 15px;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Form Actions */
.apm-form-actions {
    margin-top: 25px;
}

/** .apm-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.apm-btn:hover {
    background-color: #2980b9;
}
**/

.apm-btn {
    font-weight: 500;
    border-radius: 8px;
    margin: 0;
    padding: 12px 15px;
    /**min-width: 200px;**/
    display: inline-block;
    background-color: #ad47f1 !important;
    border: 1px solid #ad47f1 !important;
    color: #ffffff;
    font-size: 15px;
    box-shadow: inset 0 0 0 0 #ffffff;
    -webkit-transition: 0.5s;
    -ms-transition: 0.5s;
    transition: 0.5s;
	text-align: center;
}

.apm-btn:hover {
    color: #ad47f1;
    border-color: #ad47f1;
    background-color: #ffffff;
    box-shadow: inset 0 0 0 50px #ffffff;
    -webkit-transition: 0.5s;
    -ms-transition: 0.5s;
    transition: 0.5s;
}

.apm-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.apm-btn-primary {
    background-color: #3498db;
}

.apm-btn-primary:hover {
    background-color: #2980b9;
}

.apm-btn-secondary {
    background-color: #95a5a6;
}

.apm-btn-secondary:hover {
    background-color: #7f8c8d;
}

.apm-form-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.apm-form-links a {
    color: #3498db;
    text-decoration: none;
}

.apm-form-links a:hover {
    text-decoration: underline;
}

.apm-form-links span {
    color: #999;
    margin: 0 10px;
    font-size: 12px;
}

/* Success Messages for Forms */
.apm-login-success,
.apm-register-success,
.apm-forgot-password-success {
    text-align: center;
    padding: 30px;
}

.apm-login-success h3,
.apm-register-success h3,
.apm-forgot-password-success h3 {
    margin: 0 0 15px;
    font-size: 22px;
    color: #27ae60;
}

.apm-login-success p,
.apm-register-success p,
.apm-forgot-password-success p {
    margin: 0 0 20px;
    color: #666;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .apm-form-container {
        padding: 15px;
    }
    
    .apm-form-wrapper {
        padding: 20px;
        margin: 0;
    }
    
    .apm-form-header h2 {
        font-size: 22px;
    }
    
    .apm-form-header p {
        font-size: 13px;
    }
    
    .apm-form-group input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .apm-btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .apm-form-wrapper {
        border-radius: 8px;
        padding: 15px;
    }
    
    .apm-form-header {
        margin-bottom: 20px;
    }
    
    .apm-form-header h2 {
        font-size: 20px;
    }
    
    .apm-form-actions .apm-form-links {
        flex-direction: column;
    }
    
    .apm-form-actions .apm-form-links span {
        display: block;
        margin: 10px 0;
    }
}

/* Loading State */
.apm-btn.loading {
    position: relative;
    pointer-events: none;
}

.apm-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Google reCAPTCHA */
.g-recaptcha {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

.grecaptcha-badge {
    visibility: hidden;
}

.apm-recaptcha-disclaimer {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
    text-align: center;
    line-height: 1.4;
}

.apm-recaptcha-disclaimer a {
    color: #666;
    text-decoration: none;
}

.apm-recaptcha-disclaimer a:hover {
    text-decoration: underline;
}

/* Loading Overlay */
.apm-form-loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.apm-form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apm-form-loading::after::before {
    content: '';
    width: 30px;
    height: 30px;
    border: 4px solid #eee;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}