/* Appointment Reminder Styles */
.appointment-reminder {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 350px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.reminder-content {
    padding: 20px;
}

.reminder-content h3 {
    margin: 0 0 15px 0;
    color: #6C38A1;
    display: flex;
    align-items: center;
}

.reminder-content h3 i {
    margin-right: 10px;
    color: #FFB300;
}

.reminder-content p {
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.6;
}

.reminder-content ul {
    margin: 0 0 20px 0;
    padding-left: 20px;
}

.reminder-content li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.5;
}

.reminder-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.reminder-actions button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remind-later {
    background-color: #f0f0f0;
    color: #333;
}

.btn-remind-later:hover {
    background-color: #e0e0e0;
    transform: translateY(-1px);
}

.btn-dismiss {
    background-color: #6C38A1;
    color: white;
}

.btn-dismiss:hover {
    background-color: #9C27B0;
    transform: translateY(-1px);
}

/* Payment Processing Styles */
.payment-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.payment-form-container h2 {
    margin-bottom: 20px;
    color: #6C38A1;
    text-align: center;
    font-size: 1.8rem;
}

.payment-form {
    display: grid;
    gap: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    border-color: #6C38A1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.1);
}

.form-group input.error {
    border-color: #f44336;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

.error-message {
    color: #f44336;
    font-size: 14px;
    margin-top: 5px;
    line-height: 1.4;
}

.payment-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.payment-summary h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1rem;
}

.payment-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    line-height: 1.4;
}

.payment-summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    font-weight: bold;
    font-size: 18px;
}

.save-payment-option {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.save-payment-option input {
    margin: 0;
    width: auto;
}

.save-payment-option label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.payment-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 15px;
}

.btn-pay {
    background: #6C38A1;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-pay:hover {
    background: #9C27B0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
}

.btn-cancel {
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cancel:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* Payment Loading Overlay */
.payment-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #6C38A1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.payment-loading p {
    font-size: 18px;
    color: #333;
    text-align: center;
}

/* Payment Success Message */
.payment-success {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.success-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    margin: 20px;
}

.success-content i {
    font-size: 60px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.success-content h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
}

.success-content p {
    margin: 0 0 10px 0;
    color: #555;
    line-height: 1.5;
}

.btn-continue {
    background: #6C38A1;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-continue:hover {
    background: #9C27B0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
}

/* Saved Payment Methods */
.saved-payment-methods {
    margin-bottom: 30px;
}

.saved-payment-methods h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
}

.saved-payment-method {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.saved-payment-method:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.payment-method-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-method-info i {
    font-size: 24px;
    color: #6C38A1;
}

.payment-method-info p {
    margin: 0 0 5px 0;
    color: #333;
    font-weight: 500;
}

.payment-method-info p:last-child {
    margin-bottom: 0;
    color: #666;
    font-size: 14px;
    font-weight: normal;
}

.payment-method-actions {
    display: flex;
    gap: 10px;
}

.btn-use-payment,
.btn-remove-payment {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-use-payment {
    background-color: #6C38A1;
    color: white;
}

.btn-use-payment:hover {
    background-color: #9C27B0;
    transform: translateY(-1px);
}

.btn-remove-payment {
    background-color: #f0f0f0;
    color: #333;
}

.btn-remove-payment:hover {
    background-color: #e0e0e0;
    transform: translateY(-1px);
}

.using-saved-payment {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.using-saved-payment p {
    margin: 0;
    color: #2e7d32;
    font-weight: 500;
}

.btn-change-payment {
    background: transparent;
    color: #2e7d32;
    border: 1px solid #2e7d32;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-change-payment:hover {
    background: #2e7d32;
    color: white;
    transform: translateY(-1px);
}

/* Enhanced Mobile Responsive Styles */
@media (max-width: 768px) {
    .appointment-reminder {
        width: 90%;
        right: 5%;
        left: 5%;
        top: 10px;
    }
    
    .reminder-content {
        padding: 15px;
    }
    
    .reminder-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .reminder-actions button {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
    
    .payment-form-container {
        padding: 20px;
        margin: 0 10px;
        max-width: none;
    }
    
    .payment-form-container h2 {
        font-size: 1.5rem;
    }
    
    .payment-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-pay,
    .btn-cancel {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
    
    .saved-payment-method {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .payment-method-actions {
        margin-top: 0;
        width: 100%;
        justify-content: space-between;
    }
    
    .btn-use-payment,
    .btn-remove-payment {
        flex: 1;
        padding: 10px;
        font-size: 14px;
    }
    
    .using-saved-payment {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .btn-change-payment {
        width: 100%;
        padding: 10px;
    }
    
    .success-content {
        padding: 30px 20px;
        margin: 20px 10px;
    }
    
    .success-content i {
        font-size: 50px;
    }
    
    .success-content h3 {
        font-size: 20px;
    }
    
    .btn-continue {
        width: 100%;
        padding: 15px;
    }
    
    .payment-summary {
        padding: 15px;
    }
    
    .form-group input {
        padding: 15px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .save-payment-option {
        margin-bottom: 25px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .appointment-reminder {
        width: 95%;
        right: 2.5%;
        left: 2.5%;
    }
    
    .payment-form-container {
        padding: 15px;
        margin: 0 5px;
    }
    
    .payment-form-container h2 {
        font-size: 1.3rem;
    }
    
    .reminder-content {
        padding: 12px;
    }
    
    .reminder-content h3 {
        font-size: 1rem;
    }
    
    .reminder-content p,
    .reminder-content li {
        font-size: 0.9rem;
    }
    
    .success-content {
        padding: 25px 15px;
        margin: 15px 5px;
    }
    
    .success-content i {
        font-size: 45px;
    }
    
    .success-content h3 {
        font-size: 18px;
    }
    
    .payment-summary {
        padding: 12px;
    }
    
    .payment-summary-item,
    .payment-summary-total {
        font-size: 0.9rem;
    }
}

/* Touch-friendly improvements for touch devices */
@media (hover: none) and (pointer: coarse) {
    .reminder-actions button,
    .btn-pay,
    .btn-cancel,
    .btn-continue,
    .btn-use-payment,
    .btn-remove-payment,
    .btn-change-payment {
        min-height: 44px;
        min-width: 44px;
    }
    
    .save-payment-option input {
        min-width: 44px;
        min-height: 44px;
    }
    
    .form-group input {
        min-height: 44px;
    }
} 