@import "https://cdn.jsdelivr.net/npm/bulma@1.0.4/css/bulma.min.css";

:root {
    --primary-blue: #485fc7;
    --primary-glow: rgba(72, 95, 199, 0.4);
    --dark-blue: #111827;
    --sidebar-blue: rgba(31, 45, 64, 0.5);
    --bg-darker: #0b0e14;
    --text-grey: #9ca3af;
    --accent-cyan: #06b6d4;
    --border-color: #1f2d40;
    --card-bg: rgba(17, 24, 39, 0.8);
    --box-bg: rgba(11, 14, 20, 0.4);
    --box-bg-hover: rgba(11, 14, 20, 0.6);
    --selection-bg: rgba(72, 95, 199, 0.05);
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-family: 'Ubuntu', sans-serif;
    color: #f8f9fa;
    background: radial-gradient(circle at top left, #1e293b 0%, var(--bg-darker) 100%);
}

.page-title {
    position: absolute;
    top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-title .title {
    margin-bottom: 0;
}

.form-card {
    max-width: 900px;
    width: 100%;
    margin: 1rem;
    display: flex;
    background-color: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(72, 95, 199, 0.3);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(72, 95, 199, 0.15);
    overflow: hidden;
}

.sidebar {
    width: 275px;
    flex-shrink: 0;
    padding: 2.5rem 2rem;
    background-color: var(--sidebar-blue);
    backdrop-filter: blur(4px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.step-container {
    flex-grow: 1;
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
}

.step-content {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hidden {
    display: none;
}

.plan-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.toggle-background {
	background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
}

.sidebar-step {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    margin-bottom: 1.5rem !important;
    position: relative;
    overflow: hidden;
}

.sidebar-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(72, 95, 199, 0.1), transparent);
    transition: width 0.3s ease;
}

.sidebar-step:hover::before {
    width: 100%;
}

.sidebar-step.active {
    background-color: rgba(72, 95, 199, 0.12);
    box-shadow: inset 4px 0 0 var(--primary-blue), 0 0 20px rgba(72, 95, 199, 0.1);
}

.sidebar-step .is-size-7 {
    letter-spacing: 1px;
    opacity: 0.8;
}

.plan-box, .addon-row {
    border: 2px solid var(--border-color);
    background-color: var(--box-bg);
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.plan-box {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.plan-box img {
    margin-bottom: 2rem;
    width: 40px;
}

.plan-box:hover, .addon-row:hover {
    border-color: var(--primary-blue);
    background-color: var(--box-bg-hover);
}

.plan-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3), 0 0 15px rgba(72, 95, 199, 0.2);
}

.addon-row:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 10px rgba(72, 95, 199, 0.1);
}

.plan-box.is-selected, .addon-row.is-selected {
    border-color: var(--primary-blue);
    background-color: var(--selection-bg);
}

.plan-box.is-selected {
    box-shadow: 0 0 20px rgba(72, 95, 199, 0.15);
}

.addon-row.is-selected {
    box-shadow: 0 0 15px rgba(72, 95, 199, 0.1);
}

.addon-row {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.summary-box {
    padding: 1.5rem;
    border-radius: 12px;
    background-color: var(--bg-darker);
}

.total-row {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.button {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    background-color: var(--bg-darker);
}

.button:active {
    transform: scale(0.98);
}

.button.is-primary {
    background-color: var(--primary-blue);
    border: none;
}

.button.is-primary:hover {
    background-color: #5a73e8;
    box-shadow: 0 0 20px rgba(72, 95, 199, 0.4);
    transform: translateY(-1px);
}

.input, .select select {
    background-color: var(--bg-darker) !important;
    border: 1px solid var(--border-color) !important;
    color: white !important;
    border-radius: 8px !important;
    transition: border-color 0.2s;
}

.input:focus, .select select:focus {
    border-color: var(--primary-blue) !important;
    box-shadow: 0 0 0 2px rgba(72, 95, 199, 0.2) !important;
}

.label {
    color: #ced4da !important;
    font-weight: 500;
}

.title {
    color: white !important;
}

.subtitle {
    color: var(--text-grey) !important;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--sidebar-blue);
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: steelblue;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--primary-blue);
}

input:checked + .slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}

.slider.round {
  border-radius: 20px;
}

.slider.round:before {
  border-radius: 50%;
}

.currency-tooltip {
    position: absolute;
    background: #e54e4e;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 100;
}

.currency-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #e54e4e transparent transparent transparent;
}

.control {
    position: relative;
}

.settings-icon {
    position: fixed;
    top: 2rem;
    left: 2rem;
    color:  steelblue;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
}

.settings-icon:hover {
    color: lightsteelblue;
}

#settings-modal .modal-card {
    max-width: 300px;
    border-radius: 20px;
}

#settings-modal .modal-card-body {
    background-color: #161e2a;
    color: white;
}
#settings-modal .modal-card-head {
    background-color: #1f2d40;
    border-bottom: 1px solid var(--bg-darker);
}

#settings-modal .modal-card-title {
    color: white;
}

.test-mode-only {
    display: none;
}

.test-mode-enabled .test-mode-only {
    display: block;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    body {
        align-items: flex-start;
        padding-top: 5rem;
    }

    .page-title {
        top: 2rem;
        gap: 0.5rem;
    }

    .page-title img {
        max-width: 35px !important;
    }

    .page-title .title {
        font-size: 1.5rem !important;
    }

    .form-card {
        flex-direction: column;
        margin: 1rem;
        background-color: transparent;
        box-shadow: none;
    }

    .sidebar {
        display: none;
    }

    .step-container {
        padding: 2rem 1.5rem;
        background-color: var(--dark-blue);
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    }

    #mobile-step-indicator {
        display: block !important;
    }

    #mobile-step-indicator.hidden {
        display: none !important;
    }

    .plan-options {
        flex-direction: column;
    }

    .plan-box {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
    }

    .plan-box img {
        margin-bottom: 0 !important;
        width: 35px;
    }

    .plan-box div {
        display: flex;
        flex-direction: column;
    }

    .step-container {
        padding-bottom: 6rem;
    }

    .is-flex.is-justify-content-space-between.mt-6:not(.test-mode-only) {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: var(--dark-blue);
        padding: 1.25rem 1.5rem;
        margin-top: 0 !important;
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
        z-index: 10;
        border-top: 1px solid var(--border-color);
    }
}
