/* Payment Form Styles */
.credit-card-form {
    max-width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Form Group */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

/* Input Fields */
.credit-card-form input[type="text"],
.credit-card-form input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-left: 2.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.credit-card-form input[type="text"]:focus,
.credit-card-form input[type="password"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2);
    outline: none;
    background-color: #fff;
}

/* Input with Icon */
.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

/* Form Row */
.form-row {
    display: flex;
    gap: 1rem;
    margin: 0 -0.5rem;
}

.form-row .form-group {
    flex: 1;
    min-width: 0;
    margin: 0 0.5rem 1rem;
}

/* Security Notice */
.security-notice {
    display: flex;
    align-items: flex-start;
    background-color: #f8f9fa;
    border-right: 4px solid var(--primary-color);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
}

.security-notice i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-left: 0.75rem;
}

.security-notice div {
    flex: 1;
}

.security-notice strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #333;
}

.security-notice p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* Form Actions */
.form-actions {
    margin: 2rem 0 1rem;
    text-align: center;
}

.payment-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.payment-button:hover {
    background-color: #00acc1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.payment-button i {
    margin-left: 0.5rem;
}

/* Security Badge */
.security-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    margin-right: 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.security-badge.ssl {
    background-color: #4caf50;
    color: white;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.payment-methods img {
    height: 24px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.payment-methods img:hover {
    opacity: 1;
}

/* Privacy Notice */
.privacy-notice {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.8rem;
    color: #666;
}

.privacy-notice a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-notice a:hover {
    color: #00acc1;
    text-decoration: underline;
}

/* Form Hints */
.hint {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Error States */
.credit-card-form input:invalid {
    border-color: #dc3545;
}

.credit-card-form input:invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 1rem;
    }
    
    .payment-button {
        width: 100%;
        padding: 0.85rem 1rem;
    }
}

/* Animations */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 188, 212, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 188, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 188, 212, 0); }
}

.payment-button:focus {
    animation: pulse 1.5s infinite;
    outline: none;
}
