/**
 * Yendis User Subscribe Forms - Frontend Styles
 */

.yusf-form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.yusf-form-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    line-height: 1.3;
}

.yusf-form-description {
    margin: 0 0 25px 0;
    font-size: 15px;
    color: #6b7280;
    text-align: center;
    line-height: 1.6;
}

.yusf-form-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.yusf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.yusf-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.yusf-input {
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    transition: all 0.2s ease;
    font-family: inherit;
}

.yusf-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.yusf-input::placeholder {
    color: #9ca3af;
}

.yusf-submit-button {
    margin-top: 8px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.yusf-submit-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.yusf-submit-button:active {
    transform: translateY(0);
}

.yusf-submit-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.yusf-button-text {
    display: inline-block;
}

.yusf-button-loading {
    display: none;
}

.yusf-submit-button.loading .yusf-button-text {
    display: none;
}

.yusf-submit-button.loading .yusf-button-loading {
    display: inline-block;
}

.yusf-form-message {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.yusf-form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
}

.yusf-form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

/* Notice and Error Messages */
.yusf-notice,
.yusf-error {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    max-width: 500px;
    margin: 20px auto;
}

.yusf-notice {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.yusf-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.yusf-notice a,
.yusf-error a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 600px) {
    .yusf-form-container {
        padding: 20px;
        margin: 0 15px;
    }
    
    .yusf-form-title {
        font-size: 20px;
    }
    
    .yusf-form-description {
        font-size: 14px;
    }
    
    .yusf-input {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .yusf-submit-button {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .yusf-notice,
    .yusf-error {
        margin: 20px 15px;
    }
}
