/**
 * Payment Pages Styles
 *
 * Styles for payment success, failure, and cancel pages
 */

/* Success Page Styles */
.skt-forms-success-page {
	max-width: 600px;
	margin: 0 auto;
	padding: 20px;
	text-align: center;
	font-family: Arial, sans-serif;
}

.success-container {
	background: #f9f9f9;
	padding: 40px;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.success-icon {
	display:table;
	margin:0 auto 20px;
}

.success-icon svg {
	animation: checkmark 0.6s ease-in-out;
}

@keyframes checkmark {
	0% { transform: scale(0); }
	50% { transform: scale(1.2); }
	100% { transform: scale(1); }
}

.success-container h1 {
	color: #4CAF50;
	margin-bottom: 15px;
	font-size: 2em;
}

.success-details {
	background: white;
	padding: 20px;
	margin: 20px 0;
	border-radius: 5px;
	text-align: left;
}

.success-details p {
	margin: 10px 0;
	padding: 5px 0;
	border-bottom: 1px solid #eee;
}

.success-details p:last-child {
	border-bottom: none;
}

.success-actions {
	margin-top: 30px;
}

/* Failure Page Styles */
.skt-forms-failure-page {
	max-width: 600px;
	margin: 0 auto;
	padding: 20px;
	text-align: center;
	font-family: Arial, sans-serif;
}

.failure-container {
	background: #f9f9f9;
	padding: 40px;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.failure-icon {
	display:table;
	margin:0 auto 20px;
}

.failure-icon svg {
	animation: shake 0.6s ease-in-out;
}

@keyframes shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-5px); }
	75% { transform: translateX(5px); }
}

.failure-container h1 {
	color: #f44336;
	margin-bottom: 15px;
	font-size: 2em;
}

.failure-details {
	background: white;
	padding: 20px;
	margin: 20px 0;
	border-radius: 5px;
	text-align: left;
}

.failure-details p {
	margin: 10px 0;
	padding: 5px 0;
	border-bottom: 1px solid #eee;
}

.failure-details p:last-child {
	border-bottom: none;
}

.failure-actions {
	margin-top: 30px;
}

/* Cancel Page Styles */
.skt-forms-cancel-page {
	max-width: 600px;
	margin: 0 auto;
	padding: 20px;
	text-align: center;
	font-family: Arial, sans-serif;
}

.cancel-container {
	background: #f9f9f9;
	padding: 40px;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cancel-icon {
	display:table;
	margin:0 auto 20px;
}

.cancel-icon svg {
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.05); }
	100% { transform: scale(1); }
}

.cancel-container h1 {
	color: #FF9800;
	margin-bottom: 15px;
	font-size: 2em;
}

.cancel-details {
	background: white;
	padding: 20px;
	margin: 20px 0;
	border-radius: 5px;
	text-align: left;
}

.cancel-details p {
	margin: 10px 0;
	padding: 5px 0;
	border-bottom: 1px solid #eee;
}

.cancel-details p:last-child {
	border-bottom: none;
}

.cancel-actions, .failure-actions {
	display: inline-flex;
    text-align: center;
    font-size: 16px;
	margin-top: 30px;
}

/* Common Button Styles */
.btn {
	display: inline-block;
	padding: 12px 15px;
	margin: 0 10px;
	text-decoration: none !important;
	border-radius: 5px;
	font-weight: bold;
	transition: all 0.3s ease;
}

.btn-primary {
	background: #4CAF50;
	color: white;
}

.btn-primary:hover {
	background: #45a049;
}

.btn-secondary {
	background: #f44336;
	color: white;
}

.btn-secondary:hover {
	background: #da190b;
}

.btn-tertiary {
	background: #f44336;
	color: white !important;
	text-decoration:none !important;	
}

.btn-tertiary:hover {
	background: #da190b;
	color: black !important;
}

/* Failure page specific button styles */
.failure-actions .btn-primary {
	background: #2196F3;
	color: white;
}

.failure-actions .btn-primary:hover {
	background: #1976D2;
}

.failure-actions .btn-secondary {
	background: #4CAF50;
	color: white;
}

.failure-actions .btn-secondary:hover {
	background: #45a049;
}

/* Cancel page specific button styles */
.cancel-actions .btn-primary {
	background: #2196F3;
	color: white;
	text-decoration:none;
}

.cancel-actions .btn-primary:hover {
	background: #1976D2;
}

.cancel-actions .btn-secondary {
	background: #4CAF50;
	color: white;
	text-decoration:none;
}

.cancel-actions .btn-secondary:hover {
	background: #45a049;
}

/* Responsive Design */
@media (max-width: 768px) {
	.skt-forms-success-page,
	.skt-forms-failure-page,
	.skt-forms-cancel-page {
		margin: 20px auto;
		padding: 10px;
	}
	.success-container,
	.failure-container,
	.cancel-container {
		padding: 20px;
	}
	.success-container h1,
	.failure-container h1,
	.cancel-container h1 {
		font-size: 1.5em;
	}
	.btn {
		display: block;
		margin: 10px 0;
		width: 100%;
		box-sizing: border-box;
	}
}