File size: 3,340 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
@import "@automattic/components/src/styles/typography";
@import "@wordpress/base-styles/breakpoints";

.get-report-form__wrapper {
	font-family: $font-sf-pro-text;
	color: #000;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 185;
	background-color: var(--studio-gray-0);
	border: 1px solid #cbcbcb;
	padding: 0 1.5rem;
	transition: transform ease-out 500ms;

	&--hidden {
		transform: translateY(100%);
	}
}
.get-report-form__container {
	box-sizing: border-box;
	padding: 3rem 0;
	position: relative;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 36px;
	margin: 0 auto;
	max-width: 1224px;

	@media (max-width: $break-mobile) {
		height: 100dvh;
		overflow-y: auto;
	}

	@media (max-width: $break-large) {
		.get-report-form__body {
			flex-basis: 100%;
			order: 3;
		}
	}

	.gridicon {
		position: absolute;
		right: 0;
		cursor: pointer;
		color: var(--color-button);
	}

	.form-input-validation {
		position: absolute;
	}
}
.get-report-form__title {
	color: #000;
}

.get-report-form__body {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex-basis: 620px;
	gap: 32px;
	flex-grow: 1;

}

.get-report-form__header {
	display: flex;
	gap: 36px;
	margin-right: 40px;
	justify-content: space-between;

	.description {
		color: #3c4043;
		//stylelint-disable-next-line scales/font-weights
		font-weight: 300;
	}
}

.get-report-form__form {
	display: flex;
	gap: 32px;
	flex-wrap: wrap;
}


.get-report-form__form-body {
	display: flex;
	gap: 32px;
	flex-wrap: wrap;
	flex-grow: 1;

	& fieldset {
		flex-basis: 300px;
		margin-bottom: 0;
		@media (max-width: $break-small) {
			flex-basis: 100%;
		}

	}
	label {
		/* stylelint-disable-next-line scales/font-weights */
		font-weight: 300;
		font-size: 0.875rem;
		color: var(--studio-gray-100);
	}
	.form-text-input.get-report-form__form-name,
	.form-text-input.get-report-form__form-email {
		color: var(--studio-gray-100);
	}

	& .get-report-form__form-name.form-text-input:active,
	& .get-report-form__form-email.form-text-input:active,
	& .get-report-form__form-name.form-text-input:focus,
	& .get-report-form__form-email.form-text-input:focus {
		border-color: var(--studio-blue-50);
		box-shadow: 0 0 0 2px #68b3e8;
	}
}


.get-report-form__form-footer {
	--wp-components-color-accent: var(--color-button);
	display: flex;
	gap: 20px;
	align-items: center;
	flex-wrap: wrap;
	justify-content: space-between;
	& fieldset {
		margin-bottom: 0;
		flex-basis: 755px;
		@media (max-width: $break-wide) {
			margin-bottom: 20px;
		}
	}
	.terms-checkbox {
		--checkbox-input-size: 28px;
		color: var(--studio-gray-100);
		font-size: 0.75rem;
		line-height: 1.5;
		.components-flex.components-h-stack {
			@media (min-width: $break-small) {
				align-items: center;
			}
			gap: 10px;
		}

		.components-checkbox-control__input {
			&:focus {
				border-color: var(--studio-blue-50);
				box-shadow: 0 0 0 2px #68b3e8;
			}
		}
		.components-checkbox-control__label {
			line-height: 1.5;
		}
	}
	.submit-button {
		background-color: var(--color-button);
		color: #fff;
		border-radius: 4px;
		font-weight: 500;
		font-size: 1rem;
		padding: 1rem;
		line-height: 1;
		text-decoration: none;
		min-width: 191px;
		border: none;
		svg {
			margin-left: 1rem;
		}
		@media (max-width: $break-small) {
			width: 100%;
		}
	}
}