/* General Styles */

h4 {
	font-family: 'Inter', sans-serif;
    margin-top: 0;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: center;
}


form {
	font-family: 'Inter', sans-serif;
    margin-top: 20px;
}

form input[type="text"],
form input[type="number"],
form input[type="password"],
form select {
	font-family: 'Poppins', sans-serif;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-bottom: 15px;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #fff;
	
}

/* Initial Form Styles */
.airtime-form-container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    max-width: 500px;
    margin: 0 auto;
}

#continue_button {
	text-transform: capitalize;
	font-family: 'Inter', sans-serif;
    padding: 12px 20px;
    font-size: 20px;
    background-color: #007BBB;
    border-radius: 8px;
    width: 100%;
	height:43px;
    border: none;
    cursor: pointer;
    color: white;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

#confirm_button:hover {
    background-color: #005F8A;
}

/* Network Selector Styles */
.network-selector {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
}

.network-selector input[type="radio"] {
    display: none;
}

.network-selector {
    display: flex;
    gap: 10px;
}

.network-selector label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 1;
    height: 80px; /* Set a fixed height for consistent layout */
    overflow: hidden;
    background-color: #fff;
}

.network-selector label img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* or use cover if you want it to fill edge-to-edge */
    border-radius: 6px;
}

.network-selector input[type="radio"] {
    display: none;
}

.network-selector input[type="radio"]:checked + label {
    border-color: #007BBB;
    box-shadow: 0 0 0 2px rgba(0, 123, 187, 0.3);
}


/* Verification Container */
#verification-container {
    padding: 20px;
    margin: 20px auto;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
	
}

#verification-container h4 {
	
    font-size: 16px;
	font-family: 'Inter', sans-serif;
    margin-bottom: 10px;
	font-weight: bold;	
}

#payment-method-container h4 {
    font-size: 22px;
	color: rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-weight: bold;
	position: relative;
    top: 20px;
}

#verification-container p {
    font-size: 15px;
    margin: 12px 0;
    display: flex;
    justify-content: space-between;
	    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	
	

}

#verification-container p strong {
    color: rgba(0, 0, 0, 0.5);
    font-weight: 600;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#verification-container p span {
    color: #007BBB;
     font-weight: 600;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.original-amount {
    color: #888;
    font-size: 0.9em;
    margin-left: 5px;
}

/* Payment Method Selection */
#payment-method-container {
    padding: 20px;
    margin: 40px auto;
    width: 100%;
    box-sizing: border-box;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin: 20px 0;
}

.payment-method-btn {
    padding: 5px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    width: 100%;
}

.payment-method-btn:hover {
    background-color: #f0f0f0;
    border-color: #007BBB;
}

.payment-method-btn span {
    display: block;
    font-weight: bold;
    color:white;
    font-size: 16px;
    margin-bottom: 5px;
	text-transform: capitalize;
}

.payment-method-btn small {
    display: block;
    color: #666;
    font-size: 13px;
}

.wallet-payment {
    border-left: 4px solid #28a745;
}

.direct-payment {
    border-left: 4px solid #007BBB;
}

/* Cashback Toggle */
.cashback-toggle {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.cashback-toggle span {
    margin-left: 10px;
    font-size: 14px;
    color: #555;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.switch::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: white;
    left: 2px;
    top: 2px;
    transition: transform 0.3s ease;
}

#cashback:checked + .switch {
    background-color: #007BBB;
}

#cashback:checked + .switch::after {
    transform: translateX(20px);
}

/* Cashback Login Notice */
.cashback-login-notice {
    margin: 20px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

.cashback-login-notice a {
    color: #007BBB;
    font-weight: bold;
    text-decoration: none;
}

.cashback-login-notice a:hover {
    text-decoration: underline;
}

/* PIN Input Fields */
.pin-input-container {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: -10px 0;
}

.pin-input-container input {
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.pin-input-container input:focus {
    border-color: #007BBB;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 187, 0.3);
}

/* Buttons */
#verification-container button,
#payment-method-container button {
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    color: white;
    width: 100%;
    margin-top: 15px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#pay_button, #verify_button {
    background-color: #007BBB;
	text-transform: capitalize;
	height:45px;
	
}

#pay_button:hover, #verify_button:hover {
    background-color: #005F8A;

}

.exit_button {
    background-color: #f44336;
	
}

.exit_button:hover {
    background-color: #c0392b;
}

#back_button {
    background-color: #6c757d;
}

#back_button:hover {
    background-color: #5a6268;
}

/* Loading Spinner */
#loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: none;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #007BBB;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Overlay for loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 9998;
    display: none;
}

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

/* Validation Messages */
.validation-response {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.validation-response p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.validation-response p.error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.validation-response p.success {
    color: #28a745;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .airtime-form-container, 
    #verification-container,
    #payment-method-container {
        padding: 15px;
        margin: 15px auto;
    }
    
    h4 {
        font-size: 20px;
    }
	#pay_button, #verify_button {
    background-color: #007BBB;
	text-transform: capitalize;
	height:45px;
	
	}

	#pay_button:hover, #verify_button:hover {
    background-color: #005F8A;

	}
	
	#continue_button {
	text-transform: capitalize;
	font-family: 'Inter', sans-serif;
    padding: 12px 20px;
    font-size: 20px;
    background-color: #007BBB;
    border-radius: 8px;
    width: 100%;
	height:55px;
    border: none;
    cursor: pointer;
    color: white;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

    
    form input[type="text"],
    form input[type="number"],
    form input[type="password"],
    form select {
        padding: 10px;
        font-size: 18px;
		height:60px;
		
    }
    
    .network-selector {
        flex-wrap: wrap;
    }
    
    .network-selector label {
         display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 1;
    height: 80px; /* Set a fixed height for consistent layout */
    overflow: hidden;
    background-color: #fff;
    }
	
	#payment-method-container h4 {
    font-size: 22px;
	color: rgba(0, 0, 0, 0.7);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, 		sans-serif;
	font-weight: bold;
	position: relative;
    top: 20px;
	}
    
    .network-selector label img {
        max-width: 60px;
    }
	
	
    
    .pin-input-container input {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    #verification-container p,
    #payment-method-container p {
        font-size: 14px;
    }
    
    #verification-container button,
    #payment-method-container button {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .payment-method-btn {
        padding: 12px;
    }
    
    .payment-method-btn span {
        font-size: 18px;
		text-transform: capitalize;
		color:white;
		height:20px;
		margin-top:6px;
    }
    
    .payment-method-btn small {
        font-size: 12px;
    }
    
    .cashback-login-notice {
        font-size: 13px;
        padding: 8px;
    }
}

