* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    height: 100vh; /* Full height */
    overflow: hidden; /* Hide overflow */
}

/* .container {
    display: flex;
    height: 100%;
} */
.container {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
  }
/* .sidebar {
    flex: 0 0 400px;
    padding: 30px;
    background-color: #ffffff; 
    border-right: 1px solid #ddd;
    overflow-y: auto; 
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); 
    height: 100vh;
    transition: transform 0.3s ease; 
    position: relative; 
} */
.sidebar {
    width: 400px;
    min-width: 200px;
    max-width: 600px;
    padding: 30px;
    background-color: #ffffff;
    border-right: 1px solid #ddd;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    height: 100vh;
    position: relative;
    transition: width 0.2s ease-in-out;
  }
  
  .resizer {
    width: 5px;
    cursor: ew-resize;
    background-color: #eee;
    position: relative;
    z-index: 10;
  }

.main-content {
    flex: 2;
    padding: 30px;
    overflow-y: auto;
}

h2 {
    color: black;
    margin-bottom: 20px;
}

h3 {
    margin-top: 20px;
    color: #1f1f1f;
}

.steps {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
  }
  
  label {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
  }
  
  input {
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
  }
  
  input::placeholder {
    color: #aaa;
  }
  
  input:focus {
    border-color: #e60000;
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.1);
  }
  .form-separator {
    border: none;
    border-top: 3px solid #e60000;
    margin: 30px 0 20px;
  }
  

/* General button styles for uniformity */
.generate-btn {
    margin-top: 25px;
    color: #fff; /* Red text */
    background-color: #e60000; /* White background */
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow */
    transition: background-color 0.3s ease, transform 0.2s ease-in-out;
}

.generate-btn:hover {
    background-color: #990c0c; /* Light red background */
    color: #ffffff; /* Keep red text */
    border: 1px solid #fd0000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1)
}

/* Active state (clicked button stays red) */
.generate-btn.active {
    background-color: #ffffff; /* Red background */
    color: #e60000; /* White text */
    border-color: #e60000; /* Keep red border */
}

/* Optional: Add focus effect for accessibility */
.generate-btn:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(230, 0, 0, 0.5);
}

/* Refresh icon styling for consistency */
.refresh-icon {
    width: 100%; /* Adjust the width */
    height: 18px; /* Adjust the height */
    object-fit: contain;      /* Ensure the image scales nicely */
    display: block;           /* Removes inline spacing */
    margin: 0 auto;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease; /* Smooth rotation and opacity on hover */
}

/* Add hover effect to refresh icon */
.refresh-icon:hover {
    transform: rotate(360deg); /* Adds a rotation effect on hover */
    
}

/* Adjust refresh icon size for different screen sizes */
@media (max-width: 768px) {
    .refresh-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .refresh-icon {
        width: 18px;
        height: 18px;
    }
}

.download-btn,
.copy-btn {
  background-color: #2c2c2c; /* Sleek dark background */
  color: #f5f5f5; /* Light text */
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 8px; /* Adds spacing between buttons */
  min-width: 160px; /* Uniform width */
  text-align: center;
}

.download-btn:hover,
.copy-btn:hover {
  background-color: #1f1f1f;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.steps ol {
    padding-left: 20px;
}

.steps li {
    margin-bottom: 10px;
}

/* Container styling */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

/* Card styling */
.card {
    width: calc(33.333% - 20px); /* Three cards per row */
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.card p {
    margin-bottom: 10px;
    font-size: 14px;
}

/* Image styling */
.instruction-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.instruction-image:hover {
    transform: scale(1.05);
}

/* Modal styling */
.modal {
    display: none; /* Ensure the modal is hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Dark background */
    justify-content: center; /* Center the image horizontally */
    align-items: center; /* Center the image vertically */
    display: flex; /* Flexbox for centering */
    cursor: pointer; /* Close the modal when clicking outside the image */
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
    cursor: auto; /* Normal cursor when hovering over the image */
}

/* Modal is hidden by default */
.hidden {
    display: none;
}
 
#signature {
    width: 700px; /* Maintain the same width */
    height: 165px; /* Maintain the same height */
}

.signature-content {
    display: grid;
    grid-template-columns: auto 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 1px;
    align-items: center;
    padding-top: 4px;
    /* max-width: 600px; */
    /* padding-left: 10px; */
}

.signature-logo {
    grid-column: 1;
    grid-row: 1;
}

.signature-details p {
    margin: 2px 0;
}

.name {
    font-size: 20px;
    font-stretch: expanded;
    font-weight: 1000;
}

.name .first-name {
    color: black;
}

.name .last-name {
    color: red;
}

.signature-details p:not(.name) {
    font-size: 11px;
    line-height: 1;
}

/* .confidentiality p {
    font-family: "Oswald", sans-serif;
    color: #555;
    text-align: justify;
    line-height: 1;
    max-width: 500px;
}

.confidentiality {
    grid-column: 1 / span 2;
    grid-row: 2;
    font-family: 'Open Sans Condensed', light;
    font-size: 10px;
    color: #555;
} */

.qr-code {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
}

.qr-code img {
    height: 100%;
}

.phone-input.invalid::placeholder {
    color: red;
}
/* Existing styles here... */

/* Signature placeholder styles */
.signature-placeholder {
    border: 2px dashed #ccc; /* Dashed border */
    border-radius: 5px; /* Slightly rounded corners */
    padding: 20px; /* Padding inside the placeholder */
    text-align: center; /* Center text */
    background-color: #f9f9f9; /* Light background */
    color: #999; /* Light text color */
    font-size: 16px; /* Font size */
    margin-top: 12px; /* Spacing above */
    height: 160px; /* Match height to the signature area */
    display: flex; /* Flexbox for centering */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}