/*=========================================================================
# Project Overview
===========================================================================
Project Name    : WP AGE GATE PRO
Author          : Weplugins
Developer       : Dinesh Suthar
Version         : 3.1.1
Created On      : 25 March 2025
Last Updated    : 25 march 2025
Description     : This stylesheet is designed for an weplugins. 
                  Includes responsive design principles and accessibility.
===========================================================================*/

/*=========================================================================
# General Guidelines
===========================================================================
1. Maintain a modular approach for styles.
2. Test styles across all major browsers (Chrome, Firefox, Safari, Edge).
3. Ensure proper accessibility (e.g., WCAG compliance).
===========================================================================*/

/* Embedded font family
===========================================================================*/
@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

/* Variables
===========================================================================*/
:root {
  /* Colors */
  --agp-black: #000000;
  --agp-white: #ffffff;
  --agp-primary: #4390ff;
  --agp-primary-hover: #1572f5;
  --agp-secondary: #f5f7fa;
  --agp-secondary-hover: #e7e9ec;
  --agp-success: #00dd58;
  --agp-danger: #ff4444;
  --agp-dark: #23272f;

  /* Border */
  --agp-border-width: 1px;
  --agp-border-style: solid;
  --agp-border-color: #ebf1fa;

  /* Other Variables */
  --agp-border-radius: 4px;
  --agp-border-radius-circle: 50%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

/* Browser native scrollbar
===========================================================================*/
* {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar:horizontal {
  height: 4px;
}

::-webkit-scrollbar-track {
  border-radius: 4px;
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.4);
}

::-webkit-scrollbar-thumb:window-inactive {
  background: rgba(0, 0, 0, 0.2);
}

/* Form Control Input & Textarea
===========================================================================*/
input.agp-form-control {
  --agp-form-control-padding-y: 10px;
  --agp-form-control-padding-x: 20px;
  --agp-form-control-font-size: 16px;
  --agp-form-control-font-weight: 400;
  --agp-form-control-line-height: 18px;
  --agp-form-control-bg: #fff;
  --agp-form-control-color: #23272f;
  --agp-form-control-placeholder-color: #23272f;
  --agp-form-control-border-width: 1px;
  --agp-form-control-border-color: #f2f4f8;
  --agp-form-control-active-border-color: var(--agp-primary);
  --agp-form-control-box-shadow: none;
  --agp-form-control-active-box-shadow: none;
  --agp-form-control-border-radius: var(--agp-border-radius);
  --agp-form-control-height: 52px;
  position: relative;
  display: block;
  margin: 0;
  width: 100%;
  padding: var(--agp-form-control-padding-y) var(--agp-form-control-padding-x);
  font-size: var(--agp-form-control-font-size);
  font-weight: var(--agp-form-control-font-weight);
  line-height: var(--agp-form-control-line-height);
  color: var(--agp-form-control-color);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: var(--agp-form-control-bg);
  background-clip: padding-box;
  box-shadow: var(--agp-form-control-box-shadow);
  border: var(--agp-form-control-border-width) solid
    var(--agp-form-control-border-color);
  border-radius: var(--agp-form-control-border-radius);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  .agp-form-control {
    transition: none;
  }
}

input.agp-form-control:focus {
  color: var(--agp-form-control-color);
  background-color: var(--agp-form-control-bg);
  border-color: var(--agp-form-control-active-border-color);
  box-shadow: var(--agp-form-control-active-box-shadow);
  outline: 0;
}

input.agp-form-control::-moz-placeholder {
  color: var(--agp-form-control-placeholder-color);
  opacity: 1;
}

input.agp-form-control::placeholder {
  color: var(--agp-form-control-placeholder-color);
  opacity: 1;
}

input.agp-form-control.agp-feedback-error {
  border-color: var(--agp-error);
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

input.agp-form-control.agp-feedback-error::-moz-placeholder {
  --agp-form-control-placeholder-color: var(--agp-error);
}

input.agp-form-control.agp-feedback-error::placeholder {
  --agp-form-control-placeholder-color: var(--agp-error);
}

/* Form Select
===========================================================================*/
select.agp-form-select {
  --agp-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  --agp-form-select-padding-y: 10px;
  --agp-form-select-padding-x: 20px;
  --agp-form-select-font-size: 16px;
  --agp-form-select-font-weight: 400;
  --agp-form-select-line-height: 18px;
  --agp-form-select-height: 40px;
  --agp-form-select-bg: #fff;
  --agp-form-select-color: var(--agp-dark);
  --agp-form-select-placeholder-color: #868e96;
  --agp-form-select-border-width: 1px;
  --agp-form-select-border-color: #f2f4f8;
  --agp-form-select-active-border-color: var(--agp-primary);
  --agp-form-select-active-box-shadow: none;
  --agp-form-select-box-shadow: none;
  --agp-form-select-border-radius: 4px;
  position: relative;
  display: block;
  margin: 0;
  width: 100%;
  max-width: none;
  padding: var(--agp-form-select-padding-y)
    calc(var(--agp-form-select-padding-x) + 10px)
    var(--agp-form-select-padding-y) var(--agp-form-select-padding-x);
  font-size: var(--agp-form-select-font-size);
  font-weight: var(--agp-form-select-font-weight);
  line-height: var(--agp-form-select-line-height);
  color: var(--agp-form-select-color);
  min-height: var(--agp-form-select-height);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: var(--agp-form-select-bg);
  background-image: var(--agp-form-select-bg-img);
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 12px;
  border: var(--agp-border-width) solid var(--agp-form-select-border-color);
  border-radius: var(--agp-form-select-border-radius);
  box-shadow: var(--agp-form-select-box-shadow);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  .agp-form-select {
    transition: none;
  }
}
select.agp-form-select:hover {
  color: var(--agp-form-select-color);
}

select.agp-form-select:focus {
  color: var(--agp-form-select-color);
  background-color: var(--agp-form-select-bg);
  border-color: var(--agp-form-select-active-border-color);
  box-shadow: var(--agp-form-select-active-box-shadow);
  outline: 0;
}
select.agp-form-select[multiple],
select.agp-form-select[size]:not([size="1"]) {
  padding-right: var(--agp-form-select-padding-y);
  background-image: none;
}

/* Button
===========================================================================*/
.agp-btn {
  --agp-btn-padding-x: 24px;
  --agp-btn-padding-y: 10px;
  --agp-btn-font-family: "Inter", serif;
  --agp-btn-font-size: 16px;
  --agp-btn-font-weight: 500;
  --agp-btn-line-height: 20px;
  --agp-btn-color: #23272f;
  --agp-btn-bg: transparent;
  --agp-btn-box-shadow: none;
  --agp-btn-border-width: var(--agp-border-width);
  --agp-btn-border-color: transparent;
  --agp-btn-border-radius: var(--agp-border-radius);
  --agp-btn-hover-border-color: transparent;
  --agp-btn-disabled-opacity: 0.5;
  display: inline-flex;
  padding: var(--agp-btn-padding-y) var(--agp-btn-padding-x);
  font-family: var(--agp-btn-font-family);
  font-size: var(--agp-btn-font-size);
  font-weight: var(--agp-btn-font-weight);
  line-height: var(--agp-btn-line-height);
  color: var(--agp-btn-color);
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: var(--agp-btn-border-width) solid var(--agp-btn-border-color);
  border-radius: var(--agp-btn-border-radius);
  background-color: var(--agp-btn-bg);
  box-shadow: var(--agp-btn-box-shadow);
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  .agp-btn {
    transition: none;
  }
}

.agp-btn:hover,
.agp-btn:focus,
.agp-btn:focus-visible {
  color: var(--agp-btn-hover-color);
  background-color: var(--agp-btn-hover-bg);
  border-color: var(--agp-btn-hover-border-color);
  outline: 0;
}

.agp-btn:disabled,
.agp-btn-disabled,
.agp-btn.disabled {
  pointer-events: none;
  cursor: not-allowed;
  opacity: var(--agp-btn-disabled-opacity);
}

.agp-btn-primary {
  --agp-btn-color: var(--agp-white);
  --agp-btn-bg: var(--agp-primary);
  --agp-btn-border-color: var(--agp-primary);
  --agp-btn-hover-color: var(--agp-white);
  --agp-btn-hover-bg: var(--agp-primary-hover);
  --agp-btn-hover-border-color: var(--agp-primary-hover);
}

.agp-btn-icon {
  --agp-btn-padding-x: 5px;
  --agp-btn-padding-y: 5px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.agp-btn:not(.agp-btn-icon) > i,
.agp-btn:not(.agp-btn-icon) > [class*="ri-"] {
  margin-right: 8px;
  align-self: center;
}

.agp-btn-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.agp-btn-wrapper:not(:first-child) {
  margin-top: 32px;
}

/* Defaulting
===========================================================================*/
.agp-root {
  position: fixed;
  inset: 0;
  z-index: 100000 !important;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.agp-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
  height: 100%;
  width: 100%;
  background-repeat: no-repeat;
  background-size: cover;
}

.agp-main {
  --agp-container-width: 500px;
  position: relative;
  z-index: 2;
  width: auto;
  max-width: var(--agp-container-width);
  margin: 20px;
}

@media screen and (min-width: 576px) {
  .agp-main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: 100%;
  }
}

/* Card Style
===========================================================================*/
.agp-card {
  --agp-card-padding-x: 24px;
  --agp-card-padding-y: 24px;
  --agp-card-text-align: center;
  --agp-card-bg: var(--agp-white);
  --agp-card-color: var(--agp-dark);
  --agp-card-font-size: 18px;
  --agp-card-line-height: 24px;
  --agp-card-title-font-size: 32px;
  --agp-card-title-line-height: 48px;
  --agp-card-title-font-weight: 600;
  --agp-card-title-color: var(--agp-dark);
  --agp-card-border-radius: 0;
  --agp-card-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  --agp-card-header-bg: #f6f6f6;
  --agp-card-footer-bg: #f6f6f6;
  font-size: var(--agp-card-font-size);
  line-height: var(--agp-card-line-height);
  background: var(--agp-card-bg);
  color: var(--agp-card-color);
  border-radius: var(--agp-card-border-radius);
  box-shadow: var(--agp-card-box-shadow);
  text-align: var(--agp-card-text-align);
}

.agp-card .agp-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agp-card .agp-input-wrapper:not(:first-child) {
  margin-top: 32px;
}

.agp-card-header {
  position: relative;
  background-color: var(--agp-card-header-bg);
  padding: var(--agp-card-padding-y) var(--agp-card-padding-x);
}

.agp-card-footer {
  background-color: var(--agp-card-footer-bg);
  padding: var(--agp-card-padding-y) var(--agp-card-padding-x);
}

.agp-card-title {
  font-size: var(--agp-card-title-font-size);
  font-weight: var(--agp-card-title-font-weight);
  line-height: var(--agp-card-title-line-height);
  color: var(--agp-card-title-color);
}

.agp-card .agp-card-title:not(:last-child) {
  margin-bottom: 24px;
}

.agp-card-body {
  padding: var(--agp-card-padding-y) var(--agp-card-padding-x);
}

.agp-validation-msg {
  --agp-error-color: var(--agp-danger);
  --agp-error-font-size: 16px;
  margin-top: 20px;
  font-weight: 600;
  font-size: var(--agp-error-font-size);
  color: var(--agp-error-color);
  display: none;
}

.agp-validation-msg ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
