* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f4f6f9;
}

/* Header */
.top-header {
  background-color:  rgb(95, 95, 95);
  color: white;
  padding: 15px 40px;
  text-align: center;
}

/* Progress Bar */
.progress-bar {
  background-color: #0074d9;
  color: white;
  padding: 15px 40px;
  text-align: center;
}

.progress-bar p {
  font-size: 14px;
}

.progress-bar span {
  font-size: 13px;
  opacity: 0.9;
}

/* Container */
.container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  padding: 20px;
}

.card {
  background: white;
  width: 100%;
  max-width: 900px;
  padding: 40px;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.card h3 {
  margin-bottom: 5px;
}

.subtitle {
  color: gray;
  margin-bottom: 25px;
  font-size: 14px;
}

/* Form Styling */
.form-group {
  margin-bottom: 20px;
  width: 100%;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #333;
}

input,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  font-size: 14px;
  background: white;
  transition: 0.3s;
}

input:focus,
select:focus {
  border-color: #0074d9;
  outline: none;
}

/* Row Layout */
.row {
  display: flex;
  gap: 15px;
}

.row .form-group {
  flex: 1;
}

/* Card Row */
.card-row {
  align-items: flex-end;
}

/* Small Fields */
.small {
  max-width: 130px;
}

/* Card Number Wider */
.card-number {
  flex: 2;
}

/* Input with Icon */
.input-icon {
  position: relative;
}

.input-icon input {
  padding-right: 45px;
}

/* Card number icons container */
.card-icons {
  position: absolute;
  right: 10px;
  top: 10px;
  display: flex;
  gap: 6px;
}

.card-icons img {
  width: 28px;
  height: auto;
}

/* Adjust input padding so text doesn't overlap icons */
.input-icon input {
  padding-right: 110px;
}

/* CVV icon */
.cvv-icon {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 22px;
}


/* Divider */
.divider {
  text-align: center;
  margin: 25px 0;
  color: #888;
  font-size: 13px;
}

/* Button */
.submit-btn {
  width: 100%;
  padding: 14px;
  background-color: #0074d9;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
}

.submit-btn:hover {
  background-color: #005fa3;
}

/* Responsive */
@media (max-width: 768px) {

  .row {
    flex-direction: column;
  }

  .small {
    max-width: 100%;
  }

  .card-number {
    flex: 1;
  }

}
