/**
 * PhoneMember Pro Public Styles
 */

/* Form Styles */
.pm-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.pm-form-step {
    transition: opacity 0.3s ease;
}

.pm-form-group {
    margin-bottom: 20px;
}

.pm-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

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

.pm-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.pm-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.pm-phone-input-group {
    display: flex;
    gap: 10px;
}

.pm-country-select {
    flex: 0 0 200px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.pm-phone-input {
    flex: 1;
}

/* OTP Inputs */
.pm-otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.pm-otp-digit {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.pm-otp-digit:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Buttons */
.pm-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pm-button-primary {
    background-color: #3498db;
    color: #fff;
}

.pm-button-primary:hover {
    background-color: #2980b9;
}

.pm-button-secondary {
    background-color: #95a5a6;
    color: #fff;
}

.pm-button-secondary:hover {
    background-color: #7f8c8d;
}

.pm-button-text {
    background: none;
    color: #3498db;
    padding: 8px 16px;
}

.pm-button-text:hover {
    text-decoration: underline;
}

.pm-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Messages */
.pm-form-message {
    margin: 15px 0;
    padding: 12px;
    border-radius: 4px;
    display: none;
}

.pm-form-message.pm-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.pm-form-message.pm-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.pm-form-message.pm-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Honeypot (hidden) */
.pm-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* Timer */
.pm-otp-timer {
    text-align: center;
    margin: 15px 0;
    color: #666;
    font-size: 14px;
}

/* Restriction Message */
.pm-restriction-message {
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-align: center;
    margin: 20px 0;
}

.pm-restriction-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

/* Dashboard */
.pm-dashboard-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.pm-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.pm-dashboard-card {
    background: #fff;
    padding: 20px;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pm-dashboard-card h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.pm-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pm-info-label {
    font-weight: 600;
    color: #666;
}

.pm-info-value {
    color: #333;
}

/* Membership Plans */
.pm-membership-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.pm-plan {
    background: #fff;
    padding: 30px;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pm-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.pm-plan-name {
    margin-top: 0;
    font-size: 24px;
    color: #333;
}

.pm-plan-price {
    font-size: 32px;
    font-weight: 700;
    margin: 20px 0;
    color: #3498db;
}

.pm-price-period {
    font-size: 16px;
    color: #666;
}

.pm-plan-trial {
    margin: 15px 0;
    padding: 8px;
    background-color: #d4edda;
    border-radius: 4px;
    color: #155724;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .pm-form {
        padding: 15px;
    }

    .pm-otp-digit {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }

    .pm-phone-input-group {
        flex-direction: column;
    }

    .pm-country-select {
        flex: 1;
    }

    .pm-dashboard-grid {
        grid-template-columns: 1fr;
    }
}
